dpnp.broadcast.size¶
property
- property broadcast.size¶
Total size of the broadcasted result.
- Returns:
- outint
The total size (number of elements) of the broadcasted result.
Examples
>>> import dpnp as np >>> x = np.array([[1], [2], [3]]) >>> y = np.array([4, 5, 6]) >>> np.broadcast(x, y).size 9