Algosim documentation: rank

rank

The rank of a matrix.

Syntax

Description

If A is a matrix, then rank(A) returns the rank of A, that is, the dimension of the subspace spanned by the columns of A (the column space of A).

Examples

A ≔ ❨❨2, 2, −5, 0, −1❩, ❨1, 5, −2, 1, 5❩, ❨0, 1, 3, 2, 6❩, ❨−2, 1, 4, 6, 9❩, ❨3, −2, 7, −2, 6❩❩
⎛ 2   2  −5   0  −1⎞
⎜ 1   5  −2   1   5⎟
⎜ 0   1   3   2   6⎟
⎜−2   1   4   6   9⎟
⎝ 3  −2   7  −2   6⎠
rank(A)
4

See also