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

◆ simple_degree()

int Monoid::simple_degree ( const_monomial m) const

Definition at line 698 of file monoid.cpp.

699{
700 if (mVariableCount == 0) return 0;
701
703 to_expvector(m, EXP1);
705}
exponents::Exponents exponents_t
static Exponent simple_degree(int nvars, ConstExponents a)
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, exp_size, mVariableCount, ExponentVector< int, true >::simple_degree(), and to_expvector().