dpnp.broadcast.size

property

property broadcast.size

Total size of the broadcasted result.

Returns:

out -- The total size (number of elements) of the broadcasted result.

Return type:

int

Examples

>>> import dpnp as np
>>> x = np.array([[1], [2], [3]])
>>> y = np.array([4, 5, 6])
>>> np.broadcast(x, y).size
9