For users
apply_ufunc
For developers/contributors
Community
Number of elements in the array.
Equal to np.prod(a.shape), i.e., the product of the array’s dimensions.
np.prod(a.shape)
See also
numpy.ndarray.size