Template Function sequant::base_field(BraRange, KetRange)

Function Documentation

template<typename BraRange, typename KetRange>
Field sequant::base_field(BraRange bra, KetRange ket)

Returns:

the scalar Field obtained by OR-ing the IndexSpace::field() of the (non-null) indices in bra and ket: Field::Complex if any of them is over a complex space, else Field::Real (Complex dominates, C v R = C). This is the “base field” of a tensor with those bra/ket indices &#8212; the field over which its bra<->ket dual pairing is defined.