TensorDimensions

TensorDimensions[tensor]
gives the list of dimensions of tensor.

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