Rank of a Matrix

Rank

The rank of a matrix AA, denoted by r(A)r(A), is defined as the number of linearly independent rows of AA.

By definition, a coefficient matrix, AA, represents a linearly independent system of r(A)r(A) equations. The number of linearly independent rows is called row rank, and the number of linearly independent columns is called column rank. However, because row rank is always equal to column rank, these terms are seldom used. Instead, we simply refer to them as rank.

Calculating rank through Python

The following Python code calculates the rank of a matrix.

Get hands-on with 1400+ tech skills courses.