Macaulay2 Engine
Loading...
Searching...
No Matches

◆ divides_partial_order()

bool Monoid::divides_partial_order ( const_monomial m,
const_monomial n ) const

Definition at line 480 of file monoid.cpp.

482{
483 if (mVariableCount == 0) return true;
484
487 // can we speed this up by not unpacking ??
488 to_expvector(m, EXP1);
489 to_expvector(n, EXP2);
490 return exponents::divides(mVariableCount, EXP1, EXP2);
491}
exponents::Exponents exponents_t
static bool divides(int nvars, ConstExponents a, ConstExponents b)
void to_expvector(const_monomial m, exponents_t result_exp) const
Definition monoid.cpp:747
size_t exp_size
Definition monoid.hpp:120
const int mVariableCount
number of variables
Definition monoid.hpp:99
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62

References ALLOCATE_EXPONENTS, ExponentVector< int, true >::divides(), exp_size, mVariableCount, and to_expvector().