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

◆ sort_value()

int res2_comp::sort_value ( res2_pair * p,
const std::vector< int > sort_order ) const
private

Definition at line 940 of file res-a0.cpp.

941{
943 M->to_expvector(p->syz->monom, REDUCE_exp);
944 return exponents::weight(P->n_vars(), REDUCE_exp, sort_order);
945}
exponents::Exponents exponents_t
static Exponent weight(int nvars, ConstExponents a, const std::vector< Exponent > &wts)
size_t exp_size
Definition res-a0.hpp:192
const Monoid * M
Definition res-a0.hpp:124
const PolynomialRing * P
Definition res-a0.hpp:122
int p
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62

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