Jump to content

Rank (computer programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quuxplusone (talk | contribs) at 23:03, 26 July 2005 (expand slightly, copyedit). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

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

See also