MV2¶
-
rank
(obj)[source]¶ Return the number of dimensions of an array.
Note
This function is deprecated in NumPy 1.9 to avoid confusion with numpy.linalg.matrix_rank. The
ndim
attribute or function should be used instead.See also
ndim
equivalent non-deprecated function
Notes
In the old Numeric package, rank was the term used for the number of dimensions, but in NumPy ndim is used instead.