dpnp.dpnp_array.dpnp_array.size

property

property dpnp_array.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