Template Function sequant::opt::single_term_opt¶ Defined in File optimize.hpp Function Documentation¶ template<typename IdxToSz, std::enable_if_t<std::is_invocable_v<IdxToSz, Index>, bool> = true>ExprPtr sequant::opt::single_term_opt(Product const &prod, IdxToSz const &idxsz)¶ Note prod is assumed to consist of only Tensor expressions Parameters: prod – Product to be optimized. idxsz – An invocable object that maps an Index object to size. Returns: Parenthesized product expression.