Template Function sequant::external_indices(const ExprPtr&)¶
Defined in File indices.hpp
Function Documentation¶
-
template<template<class> class Container = container::svector, template<class> class Group = container::svector>
Container<Group<SlottedIndex>> sequant::external_indices(const ExprPtr &expr)¶ Obtains the groups of external (named) indices for the given expression.
See also
get_bra_idx
See also
get_ket_idx
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