Microsoft Store
 

Rank of an array


 

In computer programming, the rank of an array is usually defined to be the number of dimensions of that array. For example, a matrix is an array of rank 2. In some languages, such as APL, a scalar is defined as an array of rank 0.

Related Topics:
Computer programming - Dimension - Matrix - APL - Scalar

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

In APL, the unary ρ (rho) operator can be used to find the dimensions of an array; thus, ρρA is the rank of A.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~