flâneur — a map of the web's best reading

Dimension vs. Rank

teamten.com · 242 words · saved by 1 readers

i’ve long been confused by the two definitions of the word dimension. Sometimes we talk about a 3-dimensional array:

Dimension vs. Rank Dimension vs. Rank September 9, 2022 I've long been confused by the two definitions of the word dimension . Sometimes we talk about a 3-dimensional array: float a [ 5 ][ 6 ][ 7 ]; and sometimes we talk about a 3-dimensional vector: float v [ 3 ]; I finally figured out that the word is only correctly used in the second example above. In the first example, the term should be rank , as in, "a rank-3 array". So rank is the number of indices that you need to get to a scalar. In the first example you need three indices to get a float: x = a [ i ][ j ][ k ]; Each of these indices h

Explore this link on the map →

related reading