COO.broadcast_to¶
-
COO.
broadcast_to
(shape)[source]¶ Performs the equivalent of
numpy.broadcast_to
forCOO
. Note that this function returns a new array instead of a view.- Parameters
- Returns
The broadcasted sparse array.
- Return type
- Raises
ValueError – If the operand cannot be broadcast to the given shape.
See also
numpy.broadcast_to
NumPy equivalent function