matmul

sparse.matmul(a, b)[source]

Perform the equivalent of numpy.matmul on two arrays.

Parameters:
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.