leveltensor.RdThe level of a tensor is the number of dimensions or subscripts used.
level.tensor(X,...)the number of levels
The level of the tensor is the length of its dim attribute. Objects without a dim attribute get level 1 if they are of length > 1 and are marked as scalars by 0 level otherwise.