Template Function sequant::opt::optimize¶
Defined in File optimize.hpp
Function Documentation¶
-
template<typename IdxToSize, typename = std::enable_if_t<std::is_invocable_r_v<size_t, IdxToSize, Index>>>
ExprPtr sequant::opt::optimize(ExprPtr const &expr, IdxToSize const &idx2size)¶ - Parameters:
expr – Expression to be optimized.
idxsz – An invocable object that maps an Index object to size.
- Returns:
Optimized expression for lower evaluation cost.