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

◆ sort_value()

int res_comp::sort_value ( res_pair * p,
const std::vector< int > sort_order ) const
private

Definition at line 463 of file res-a1.cpp.

464{
466 M->to_expvector(p->base_monom, REDUCE_exp);
467 return exponents::weight(P->n_vars(), REDUCE_exp, sort_order);
468}
exponents::Exponents exponents_t
static Exponent weight(int nvars, ConstExponents a, const std::vector< Exponent > &wts)
size_t exp_size
Definition res-a1.hpp:114
const Monoid * M
Definition res-a1.hpp:80
const PolynomialRing * P
Definition res-a1.hpp:78
int p
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62

References ALLOCATE_EXPONENTS, exp_size, M, P, p, and ExponentVector< int, true >::weight().