Function sequant::index_position

Function Documentation

inline std::optional<std::size_t> sequant::index_position(meta::eval_node auto const &node, Index const &ix)
Returns:

the position of index ix in node's canonical result indices (i.e. the corresponding tensor mode), or nullopt if absent.