Dimensions

WMA


Dimensions[expr]

returns a list of the dimensions of the expression expr.

A vector of length 3:

A 3x2 matrix:

Ragged arrays are not taken into account:

The expression can have any head:

ConjugateTranspose
Dot