In Fortran, the number of dimensions in an array.
For example, a matrix is an array of rank 2.
A scalar is sometimes defined as an array of rank 0.
This article is a stub. You can help Wikipedia by expanding it.