numpy.ndarray.size

ndarray.size

Number of elements in the array.

Examples

>>> x = np.zeros((3,5,2), dtype=np.complex128)
>>> x.size
30

Previous topic

numpy.ndarray.data

Next topic

numpy.ndarray.itemsize

This Page

Quick search