nums.numpy.shape
-
nums.numpy.
shape
(a)[source] Return the shape of an array.
This docstring was copied from numpy.shape.
Some inconsistencies with the NumS version may exist.
- Parameters
a (BlockArray) – Input array.
- Returns
shape – The elements of the shape tuple give the lengths of the corresponding array dimensions.
- Return type
tuple of ints
Examples
The doctests shown below are copied from NumPy. They won’t show the correct result until you operate
get()
.>>> nps.shape(nps.eye(3)) (3, 3)