gives the rank of tensor.
Details and Options
- TensorRank accepts any type of tensor, either symbolic or explicit, including any type of array.
- On explicit rectangular arrays of scalars, TensorRank coincides with ArrayDepth. On symbolic arrays, TensorRank stays unevaluated unless the array has been assigned a rank through any form of assumption.
Examplesopen allclose all
Introduced in 2012