gives the list of dimensions of tensor.

Details and Options

  • TensorDimensions accepts any type of tensor, either symbolic or explicit, including any type of array.
  • On explicit rectangular arrays, TensorDimensions coincides with Dimensions. On symbolic arrays, TensorDimensions stays unevaluated unless the array has been assigned a rank through any form of assumption.


open allclose all

Basic Examples  (2)

Dimensions of an array:

Dimensions of a symbolic array expression:

Scope  (3)

Dimensions of explicit arrays:

Dimensions of symbolic arrays:

Dimensions of general tensor expressions:

Options  (1)

Assumptions  (1)

Specify locally the domain of a symbolic array:

Properties & Relations  (2)

On explicit rectangular arrays, TensorDimensions coincides with Dimensions:

For symbolic expressions, there are no default dimensions assumed:

Use assumptions to assign dimensions to the array:

Possible Issues  (1)

It is not possible to mix incompatible local and global assumptions:

Introduced in 2012