Template Function sequant::detail::lexicographic_compare_tensors¶
Defined in File abstract_tensor.hpp
Function Documentation¶
-
template<typename T, typename Bra, typename Ket, typename Aux>
std::weak_ordering sequant::detail::lexicographic_compare_tensors(const T &a, const T &b, const LexicographicCompareOptions &opts, const Bra &bra, const Ket &ket, const Aux &aux)¶ Lexicographically compares tensors
aandb: by label (see lexicographic_compare_tensor_labels), then by bra, ket and aux ranks, then by bra, ket and aux indices, then by symmetry, braket symmetry and column symmetry- Parameters:
bra – a callable returning the bra indices of a tensor
ket – a callable returning the ket indices of a tensor
aux – a callable returning the aux indices of a tensor