Gröbner basis project
Codebase for research into Gröbner basis computation
WGrevlex_Order_Data Class Reference

data for the weighted grevlex monomial ordering More...

#include <particular_orderings.hpp>

Inheritance diagram for WGrevlex_Order_Data:
Monomial_Order_Data

Public Member Functions

Construction
 WGrevlex_Order_Data (const Monomial &t)
 creates an array of partial weights of t More...
 
 WGrevlex_Order_Data (const WGrevlex_Order_Data &)
 copy constructor
 
WGrevlex_Order_Dataclone ()
 clone constructor
 
Destruction
 ~WGrevlex_Order_Data ()
 deletes the array of partial weights
 
returns the weighted sum of the first \f$i\f$ variables
DEG_TYPE operator[] (NVAR_TYPE i) const
 
virtual DEG_TYPE grading (NVAR_TYPE i) const
 default value is useless; orderings that supply gradings should redefine
 
Computation
void assign_gradings (const Monomial &t)
 assigns gradings to a pre-allocated array More...
 
Memory management
void * operator new (size_t)
 requests memory form WGrevlex_Ordering's Grading_Order_Data_Allocator
 
void operator delete (void *)
 returns data to WGrevlex_Ordering's Grading_Order_Data_Allocator
 
- Public Member Functions inherited from Monomial_Order_Data
virtual ~Monomial_Order_Data ()
 does nothing but guarantee polymorphism (stupid, stupid C++)
 

Protected Attributes

DEG_TYPE * gradings
 array of partial weighted sums of exponents
 
const NVAR_TYPE number_of_gradings
 length of gradings
 

Detailed Description

data for the weighted grevlex monomial ordering

Author
John Perry
Date
2015

The data involves an array of \(n\) DEG_TYPE, where the first entry is a weighted sum of the first \(n\) variables, the second entry is the ordinary sum of all but the last variable, etc.

Definition at line 318 of file particular_orderings.hpp.

Constructor & Destructor Documentation

◆ WGrevlex_Order_Data()

WGrevlex_Order_Data::WGrevlex_Order_Data ( const Monomial t)

creates an array of partial weights of t

Warning
Assign the correct ordering to t first!

Definition at line 372 of file particular_orderings.cpp.

Member Function Documentation

◆ assign_gradings()

void WGrevlex_Order_Data::assign_gradings ( const Monomial t)

assigns gradings to a pre-allocated array

Warning
This does not create the array if it does not exist already!

Definition at line 361 of file particular_orderings.cpp.


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