rank - Maple Help

# Online Help

###### All Products    Maple    MapleSim

MTM

 rank
 compute the rank of a matrix

 Calling Sequence rank(A)

Parameters

 A - matrix, vector, array, or scalar

Description

 • The function rank(A) computes the rank of a matrix by performing Gaussian elimination on the rows of the given matrix. The rank of the matrix A is the number of non-zero rows in the resulting matrix.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $A≔\mathrm{Matrix}\left(\left[\left[1,2,1\right],\left[2,4,2\right],\left[2,8,1\right]\right]\right)$
 ${A}{≔}\left[\begin{array}{ccc}{1}& {2}& {1}\\ {2}& {4}& {2}\\ {2}& {8}& {1}\end{array}\right]$ (1)
 > $\mathrm{rank}\left(A\right)$
 ${2}$ (2)

 See Also