Gröbner basis project
Codebase for research into Gröbner basis computation
|
data for the grevlex monomial ordering More...
#include <particular_orderings.hpp>
Public Member Functions | |
Construction | |
Grevlex_Order_Data (const Monomial &t) | |
Grevlex_Order_Data (const Grevlex_Order_Data &) | |
copy constructor | |
virtual Grevlex_Order_Data * | clone () |
clone “constructor” | |
Destruction | |
~Grevlex_Order_Data () | |
deletes the array creates by the constructor | |
Basic properties | |
DEG_TYPE | operator[] (NVAR_TYPE i) const |
returns the sum of the first \(i\) variables’ exponents | |
virtual DEG_TYPE | grading (NVAR_TYPE i) const |
default value is useless; orderings that supply gradings should redefine | |
Computation | |
void | assign_gradings (const Monomial &) |
assigns gradings to a pre-allocated array More... | |
![]() | |
virtual | ~Monomial_Order_Data () |
does nothing but guarantee polymorphism (stupid, stupid C++) | |
Protected Attributes | |
DEG_TYPE * | gradings |
list of partial sums of exponents | |
const NVAR_TYPE | number_of_gradings |
length of gradings | |
data for the grevlex monomial ordering
The data involves an array of \(n\) DEG_TYPE
, where the first entry is the sum of the first \(n\) variables, the second entry is the sum of all but the last variable, etc.
Definition at line 64 of file particular_orderings.hpp.
Grevlex_Order_Data::Grevlex_Order_Data | ( | const Monomial & | t | ) |
creates an array of partial weights of
Definition at line 201 of file particular_orderings.cpp.
void Grevlex_Order_Data::assign_gradings | ( | const Monomial & | t | ) |
assigns gradings to a pre-allocated array
Definition at line 193 of file particular_orderings.cpp.