Function sequant::opt::clusters¶ Defined in File optimize.cpp Function Documentation¶ container::vector<container::vector<size_t>> sequant::opt::clusters(Sum const &expr)¶ Create clusters out of positions of terms in a sum that share common intermediates. Parameters: expr – A Sum to find clusters in. Returns: A vector of clusters (vectors of position index of terms in expr).