Function sequant::opt::reorder

Function Documentation

Sum sequant::opt::reorder(Sum const &sum)

Reorder summands so that terms having common intermediates appear closer.

Parameters:

sum – Expression to reorder.

Returns:

Expression with summands re-ordered.