dpnp.ndarray.size¶
property
- property ndarray.size¶
Number of elements in the array.
- Returns:
- element_countint
Number of elements in the array.
See also
dpnp.sizeReturn the number of elements along a given axis.
dpnp.shapeReturn the shape of an array.
dpnp.ndarray.shapeReturn the shape of an array.
Examples
>>> import dpnp as np >>> x = np.zeros((3, 5, 2), dtype=np.complex64) >>> x.size 30