Template Function sequant::collect_tensor_factors

Function Documentation

template<typename Rng>
void sequant::collect_tensor_factors(EvalExprNode const &node, Rng &collect, std::int8_t &phase)

Collect tensors appearing as a factor at the leaf node of a product sub-tree, or, at the root node of a sum sub-tree or of an inlined equation (see EvalExpr::is_equation_boundary).

Parameters:

phase – [inout] multiplied by the sign by which each factor of the sub-tree as written differs from what is collected for it (see EvalExpr::leaf_phase for a leaf, EvalExpr::canon_phase otherwise).