Function sequant::bits::bipartitions_unordered

Function Documentation

constexpr auto sequant::bits::bipartitions_unordered(std::unsigned_integral auto mask)

Generates unordered bipartitions of the mask.

This function returns a subset of the ordered bipartitions such that for every pair {A, B}, the pair {B, A} is excluded (unless A == B, which is handled naturally). Specifically, it takes the first half of the ordered bipartitions.

Parameters:

mask – The bitmask representing the set.

Returns:

A view of unordered bipartitions.