Template Function sequant::detail::result_irreps

Function Documentation

template<std::ranges::random_access_range Range, typename Predicate>
std::unordered_map<std::size_t, AnyIrrepSet> sequant::detail::result_irreps(const Range &expressions, const ExportContext &ctx, const Predicate &overwrites, ScannedIrrepContext::Registry &scanned)

Determines the IRREPs of the results of the given trees (in order of execution)

Parameters:

scanned – The IRREPs of results of previously scanned trees (keyed by rewritten tensors), which gets updated with the results of expressions

Returns:

The IRREPs of the results of the given trees keyed by the trees’ IDs