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

◆ monomial_weight()

int GBWeight::monomial_weight ( const_monomial m,
int comp ) const

Definition at line 99 of file gbweight.cpp.

100{
102 R_->get_flattened_monoid()->to_expvector(monom, EXP);
103 return exponents_weight(EXP, comp);
104}
exponents::Exponents exponents_t
GBRing * R_
Definition gbweight.hpp:73
size_t exp_size
Definition gbweight.hpp:75
int exponents_weight(const_exponents e, int comp) const
Definition gbweight.cpp:58
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62

References ALLOCATE_EXPONENTS, exp_size, exponents_weight(), and R_.