|
Macaulay2 Engine
|
Comparator that orders indices into the current GB array (gb_array) by each gbelem's leading monomial, in increasing order. More...
#include <f4-types.hpp>
Public Types | |
| typedef MonomialInfo::value | monomial |
| typedef int | value |
Public Member Functions | |
| int | compare (value a, value b) |
| bool | operator() (value a, value b) |
| GBSorter (const MonomialInfo *M0, const gb_array &gb0) | |
| long | ncomparisons () const |
| long | ncomparisons0 () const |
| void | reset_ncomparisons () |
| ~GBSorter () | |
Private Attributes | |
| const MonomialInfo * | M |
| const gb_array & | gb |
Static Private Attributes | |
| static long | ncmps |
| static long | ncmps0 |
Comparator that orders indices into the current GB array (gb_array) by each gbelem's leading monomial, in increasing order.
operator() returns true when gb[a]'s leading monomial is strictly less than gb[b]'s under MonomialInfo::compare. Like ColumnsSorter it keeps ncmps / ncmps0 profiling counters.
Definition at line 248 of file f4-types.hpp.