dpnp.broadcast.ndim

property

property broadcast.ndim

Number of dimensions of the broadcasted result.

Returns:
outint

The number of dimensions 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).ndim
2