PolyBoRi
Public Types | Public Member Functions
polybori::LexOrder Class Reference

This class defines ordering related functions. More...

#include <LexOrder.h>

Inheritance diagram for polybori::LexOrder:
polybori::COrderingFacade< LexOrder, lex_tag >

List of all members.

Public Types

typedef std::less< idx_type > idx_comparer_type
 Define binary predicate for index comparision.

Public Member Functions

 LexOrder ()
 Default Constructor.
 LexOrder (const self &rhs)
 Copy Constructor.
 ~LexOrder ()
 Destructor.
comp_type compare (idx_type, idx_type) const
 Comparison of indices corresponding to variables.
comp_type compare (const monom_type &, const monom_type &) const
 Comparison of monomials.
comp_type compare (const exp_type &, const exp_type &) const
 Comparison of exponent vectors.
monom_type lead (const poly_type &) const
 Get leading term.
monom_type lead (const poly_type &poly, deg_type) const
exp_type leadExp (const poly_type &) const
 Get leading exponent.
exp_type leadExp (const poly_type &poly, deg_type) const

Detailed Description

This class defines ordering related functions.


Member Typedef Documentation

typedef std::less<idx_type> polybori::LexOrder::idx_comparer_type

Define binary predicate for index comparision.


Constructor & Destructor Documentation

polybori::LexOrder::LexOrder ( ) [inline]

Default Constructor.

polybori::LexOrder::LexOrder ( const self rhs) [inline]

Copy Constructor.

polybori::LexOrder::~LexOrder ( ) [inline]

Destructor.


Member Function Documentation

LexOrder::comp_type polybori::LexOrder::compare ( idx_type  lhs,
idx_type  rhs 
) const

Comparison of indices corresponding to variables.

References PBORI_TRACE_FUNC, and polybori::generic_compare_3way().

Referenced by polybori::groebner::LexOrderGreaterComparer::operator()().

LexOrder::comp_type polybori::LexOrder::compare ( const monom_type &  lhs,
const monom_type &  rhs 
) const

Comparison of monomials.

References PBORI_TRACE_FUNC, and polybori::lex_compare().

LexOrder::comp_type polybori::LexOrder::compare ( const exp_type &  lhs,
const exp_type &  rhs 
) const

Comparison of exponent vectors.

References PBORI_TRACE_FUNC, and polybori::lex_compare().

LexOrder::monom_type polybori::LexOrder::lead ( const poly_type &  poly) const
monom_type polybori::LexOrder::lead ( const poly_type &  poly,
deg_type   
) const [inline]

Leading monomial with bound (just the ordinary leading monomial)

Note:
falls back to leadExp, ignores second argument
LexOrder::exp_type polybori::LexOrder::leadExp ( const poly_type &  poly) const

Get leading exponent.

References PBORI_TRACE_FUNC.

exp_type polybori::LexOrder::leadExp ( const poly_type &  poly,
deg_type   
) const [inline]

Leading exponent with bound (just the ordinary leading monomial)

Note:
falls back to leadExp, ignores second argument

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