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

◆ exponents_weight()

int GBWeight::exponents_weight ( const_exponents e,
int comp ) const

Definition at line 58 of file gbweight.cpp.

59{
61 if (use_component_degrees_ && comp > 0) sum += Fdegs_[comp];
62 return sum;
63}
static Exponent weight(int nvars, ConstExponents a, const std::vector< Exponent > &wts)
M2_arrayint wts_
Definition gbweight.hpp:68
bool use_component_degrees_
Definition gbweight.hpp:69
int nvars_
Definition gbweight.hpp:72
long * Fdegs_
Definition gbweight.hpp:76
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())
Definition mpreal.h:2600

References Fdegs_, nvars_, use_component_degrees_, ExponentVector< int, true >::weight(), and wts_.

Referenced by gbvector_term_weight(), and monomial_weight().