Expand description
Trace-axis reduction (summing axes that appear only in one operand). Trace-axis reduction for einsum operands.
Trace axes are axes that appear in only one operand and not in the output. They must be summed out (reduced) before the main contraction.
Functions§
- find_
trace_ indices - Find indices of trace axes: axes in
labelsthat don’t appear inotheroroutput. - reduce_
trace_ axes - Reduce all trace axes from a view by summing them out.