tensordot

sparse.tensordot(a, b, axes=2, *, return_type=None)[source]

Perform the equivalent of numpy.tensordot.

Parameters:
Returns:

The result of the operation.

Return type:

Union[SparseArray, numpy.ndarray]

Raises:

ValueError – If all arguments don’t have zero fill-values.

See also

numpy.tensordot

NumPy equivalent function