This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Testing  /

  • TensorRank[ expr ] gives the depth to which expr is a full array, with all the parts at a particular level being lists of the same length.
  • TensorRank[ list ] is equivalent to Length[Dimensions[ list ]].
  • Examples: TensorRank[ a,b ]; TensorRank[ a, b ].
  • TensorRank[ expr , n ] tests only down to level n.
  • See the Mathematica book: Section 3.7.11.
  • See also: Dimensions, Depth, VectorQ, MatrixQ.

    Further Examples

    This is the tensor rank of the 3 x 3 matrix .



    This is the tensor rank of a 2 x 4 x 1 tensor.