Template Function sequant::evaluate(NodesT const&, Le const&, Args&&…)

Function Documentation

template<typename NodesT, typename Le, typename ...Args, std::enable_if_t<IsIterableOfEvaluableNodes<NodesT>, bool> = true, std::enable_if_t<IsLeafEvaluator<meta::range_value_t<NodesT>, Le>, bool> = true>
auto sequant::evaluate(NodesT const &nodes, Le const &le, Args&&... args)

See also

EvalResult to know more about the return type.

Parameters:
  • nodes – An iterable of EvalNode objects that will be evaluated turn by turn and summed up.

  • le – A leaf evaluator that takes an EvalNode and returns a tensor (TA::TArrayD, btas::Tensor<double>, etc.) or a constant (double, complex<double>, etc.).

  • args – Optional CacheManager object passed by reference.

Returns:

ERPtr to the resulting EvalResult.