Macaulay2 Engine
Loading...
Searching...
No Matches
GBSorter Class Reference

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 MonomialInfoM
const gb_arraygb

Static Private Attributes

static long ncmps
static long ncmps0

Detailed Description

Comparator that orders indices into the current GB array (gb_array) by each gbelem's leading monomial, in increasing order.

Note
AI-generated documentation. Verify against the source before relying on it.

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.


The documentation for this class was generated from the following file: