TensorRank
Usage
• TensorRank[expr] 给出完全数组expr的深度,在一个特殊层上所有的部分是有相同长度的列表。
Notes
• TensorRank[list] 等于 Length[Dimensions[list]]. • TensorRank[expr, n] 仅向下测试到层 n。
Further Examples
This is the tensor rank of the 3 x 3 matrix .
In[1]:=
|
Out[1]=
|
This is the tensor rank of a 2 x 4 x 1 tensor.
In[2]:=
|
Out[2]=
|
|