EinsumExpression

class trainsum.trainsum.EinsumExpression(expr)

Utility class for typing.

Parameters:

expr (Callable)

__call__(*ops)

Evaluate the einsum expression with the provided tensor trains as operands.

Parameters:

ops (T)

Return type:

float | T