larray.LArray.ndim

LArray.ndim

Returns the number of dimensions of the array.

Returns:

int

Number of dimensions of a LArray.

Examples

>>> a = ndrange('nat=BE,FO;sex=M,F')
>>> a.ndim
2