dpnp.broadcast.ndim

property

property broadcast.ndim

Number of dimensions of the broadcasted result.

Returns:

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