level.tensor: The level (number of indices) of a tensor
Description
The level of a tensor is the number of dimensions or subscripts used.
Usage
level.tensor(X,...)
Value
the number of levels
Arguments
X
the tensor to be used
...
not used
Author
K. Gerald van den Boogaart
Details
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.