matmul¶
- sparse.matmul(a, b)[source]¶
Perform the equivalent of
numpy.matmulon two arrays.- Parameters
a (Union[SparseArray, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmuloperation on.b (Union[SparseArray, np.ndarray, scipy.sparse.spmatrix]) – The arrays to perform the
matmuloperation 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.matmulNumPy equivalent function.
COO.__matmul__Equivalent function for COO objects.