I’ve long been confused by the two definitions of the word dimension. Sometimes we talk about a 3-dimensional array: floata[5][6][7]; and sometimes we talk about a 3-dimensional vector: floatv[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][...