Template Function sequant::opt::detail::single_term_opt¶
Defined in File single_term.hpp
Function Documentation¶
-
template<OptFor Metric, has_index_extent IdxToSz>
EvalSequence sequant::opt::detail::single_term_opt(TensorNetwork const &network, IdxToSz &&idxsz, bool subnet_cse)¶ - Template Parameters:
OptFor – Cost metric to optimize for (Flops or Memsize).
IdxToSz –
- Parameters:
- Returns:
Optimal evaluation sequence under the chosen cost metric. If there are equivalent optimal sequences then the result is the one that keeps the order of tensors in the network as original as possible.