Template Function sequant::opt::detail::init_results¶
Defined in File single_term.hpp
Function Documentation¶
-
template<typename TIdxs>
void sequant::opt::detail::init_results(TensorNetwork const &network, TIdxs const &tidxs, container::vector<OptRes> &results)¶ Seeds the DP table with per-subset open indices and singleton/empty ops counts.
For each subset
iof the input tensors, computes the indices that remain open after evaluating that subset and stores them inresults[i].indices. Initializesresults[i].ops to 0 for empty and singleton subsets, and tomaxas a sentinel for subsets that will later be filled in by the DP. Singleton subsets also get their one-elementsequencepre-populated.