Template Function sequant::carried_atoms

Function Documentation

template<typename Set>
void sequant::carried_atoms(Set &atoms, meta::range_of<Index> auto &&slots)

Adds to atoms the index atoms carried by slots: the slot indices and their protoindices. A protoindex is an outer mode of the tensor-of-tensor its composite lives in, so it is live even where it is never a slot.