matmul¶
-
sparse.
matmul
(a, b)[source]¶ Perform the equivalent of
numpy.matmul
on two arrays.- Parameters
a (Union[COO, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmul
operation on.b (Union[COO, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmul
operation on.
- Returns
The result of the operation.
- Return type
Union[COO, numpy.ndarray]
- Raises
ValueError – If all arguments don’t have zero fill-values, or the shape of the two arrays is not broadcastable.
See also
numpy.matmul()
NumPy equivalent function.
COO.__matmul__()
Equivalent function for COO objects.