matmul
- sparse.matmul(a, b)[source]
Perform the equivalent of
numpy.matmul
on two arrays.- Parameters:
a (Union[SparseArray, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmul
operation on.b (Union[SparseArray, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmul
operation on.
- Returns:
The result of the operation.
- Return type:
Union[SparseArray, 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.