Template Function sequant::external_indices(const Expr&)¶
Defined in File indices.hpp
Function Documentation¶
-
template<typename Container = container::svector<container::svector<Index>>>
Container sequant::external_indices(const Expr &expr)¶ Obtains the groups of external (named) indices for the given expression.
See also
See also
Note
The order of indices in index groups is unspecified and may change in the future. If you need to selectively obtain bra or ket indices, use get_bra_idx or get_ket_idx on the group.
- Parameters:
expr – The expression to fetch the indices for
- Returns:
A container of index groups