Template Function sequant::operator<(const Op<S1>&, const Op<S2>&)

Function Documentation

template<Statistics S1, Statistics S2>
inline bool sequant::operator<(const Op<S1> &op1, const Op<S2> &op2)

The ordering operator.

Returns:

true if op1 preceeds op2 in the canonical order; Op objects are ordered lexicographically, first by statistics (fermions < bosons) then by action (cre < ann), then by their indices