Function sequant::detail::batch_range_of

Function Documentation

inline std::optional<std::pair<std::size_t, std::size_t>> sequant::detail::batch_range_of(container::svector<BatchContextEntry> const &bctx, Index const &ix)
Returns:

the element range of the enclosing batch loop of bctx over ix, the mode a batch loop slices wherever a node carries it; nullopt if no enclosing loop is over ix