Template Function sequant::get_unique_indices(const Sum&)

Function Documentation

template<typename Container = std::vector<Index>>
IndexGroups<Container> sequant::get_unique_indices(const Sum &sum)

Obtains the set of unique (non-repeated) indices used in the given sum The assumption here is that the set of unique indices of different addends is the same (which it should be anyway as otherwise it wouldn’t make sense to add these terms in the first place)