Rank
The number of dimensions of an array: 0 for a scalar, 1 for a vector, 2 for a matrix.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ArrayDepth!Rank(x)the length of the shape of x.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> integer | combinatoricsreplaces compute-engine | always |
(value) -> integer | compute-engine | always |
Details
- Tensor rank in the array sense — Wolfram's
ArrayDepth, NumPy'sndim. - Not the rank of a matrix (its number of independent rows); that is MatrixRank.
Examples
Properties #
About
| Examples | 22 |
|---|---|
| Checked against | Wolfram Language 21 agree1 differ |
| Crosswalk | Wolfram Language |