gives the rank of tensor.

Details and OptionsDetails 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.
Introduced in 2012