loupe.einsum#

class loupe.einsum(subscripts, *operands, dtype=None)[source]#

Evaluates the Einstein summation convention on the operands.

Parameters:
  • subscripts (str) – Specifies the subscripts for summation as comma separated list of subscript labels. An implicit (classical Einstein summation) calculation is performed unless the explicit indicator ‘->’ is included as well as subscript labels of the precise output form.

  • operands (list of array_like) – The arrays used to perform the requested operation.

Returns:

out – The result of the requested Einstein summation operation.

Return type:

Function

See also

tensordot