Function sequant::cross_type_less

Function Documentation

bool sequant::cross_type_less(const AbstractTensor &a, const AbstractTensor &b)

orders AbstractTensor objects of unlike concrete types

Compares label, then bra, ket and aux ranks, then the Expr type id of the two objects.

Returns:

true if a precedes b; false if they compare equal in all of these