differential_geometry.dependence.DenseDependenceObject.rank#

property DenseDependenceObject.rank: int#

The tensor rank [number of indices] of this field.

Returns:

The number of tensor indices, equivalent to len(shape).

Return type:

int