dpnp.ndarray.size

property

property ndarray.size

Number of elements in the array.

Returns:

element_count -- Number of elements in the array.

Return type:

int

See also

dpnp.size

Return the number of elements along a given axis.

dpnp.shape

Return the shape of an array.

dpnp.ndarray.shape

Return the shape of an array.

Examples

>>> import dpnp as np
>>> x = np.zeros((3, 5, 2), dtype=np.complex64)
>>> x.size
30