Function sequant::subset_index_counts¶
Defined in File indices.hpp
Function Documentation¶
-
auto sequant::subset_index_counts(meta::range_of<Index, 2> auto const &rng)¶
Computes index counts for all subsets of a given range of index groups.
This function generates a vector where each element corresponds to a subset of the input range
rng. The subsets are indexed by a bitmask, where the $i$-th bit being set means the $i$-th element ofrngis included in the subset. For each subset, it counts the occurrences of eachIndex.