Template Function sequant::find_leaf_carrying¶
Defined in File eval.hpp
Function Documentation¶
-
template<typename Node>
std::optional<std::pair<Node, std::size_t>> sequant::find_leaf_carrying(Node const &node, Index const &ix)¶ - Returns:
the first leaf in the subtree rooted at
nodewhose canonical indices containix, paired with the position ofixthere; or nullopt if no such leaf. Used to learnix'stile structure from a tensor that carries it.