Template Function sequant::eval::detail::resolve_value_node

Function Documentation

template<typename ValueMap, typename Rich>
auto const &sequant::eval::detail::resolve_value_node(ValueMap const &vmap, Rich const &rich, std::size_t vid, std::string const &what)

value id -> forest node: the node of vmap whose value key is that of rich's cell vid.

Throws:

Exception – naming what if there is none, i.e. the schedule and the forest disagree; throwing rather than asserting also keeps the non-Debug build from dereferencing an end iterator.