MatrixRank
The rank of a matrix: the number of linearly independent rows (equivalently, columns).
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
MatrixRank!MatrixRank(A)the rank of the matrix A.SageMath
matrix(A).rank()SymPyMatrix(A).rank()Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> integer | analyticreplaces compute-engine | always |
(value) -> integer | combinatoricsreplaces analytic | always |
(value) -> integer | compute-engine | always |
Details
- Written . Row rank equals column rank, so .
- A square matrix is invertible exactly when its rank is its size.
- Not the array Rank, which counts dimensions.
Examples
Basic #
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
A matrix of pairwise-distinct symbols has full rank -- its determinant, as a polynomial in independent indeterminates, can never be identically zero
live ↗InOut
live ↗
InOut
Scope #
live ↗
InOut
A matrix of pairwise-distinct symbols is full rank — the determinant, as a polynomial in independent indeterminates, can't be identically zero.
live ↗InOut
live ↗
InOut
Properties #
Possible issues #
A non-square matrix of distinct symbols doesn't qualify for the full-rank rule -- it stays unevaluated
live ↗InOut
Repeating a symbol across rows doesn't qualify either -- native compute-engine still answers this one directly (rank 1, equal rows)
live ↗InOut
About
| Examples | 28 |
|---|---|
| Checked against | Wolfram Language 24 agree3 differSageMath 19 agree2 unevaluatedSymPy 18 agree2 unevaluated |
| Crosswalk | Wolfram LanguageSageMathSymPy |
Implementation
mapped
sagepackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.ts