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

◆ degree_ring_elem()

int degree_ring_elem ( const PolyRing * R,
ring_elem re )

Definition at line 2196 of file NAG.cpp.

2197{
2199 R->multi_degree(re, d);
2200 // for a single graded ring, the first entry in a monomial array
2201 // is the negative of the degree, which is the second entry
2202 return -d[0];
2203}
virtual bool multi_degree(const ring_elem f, monomial d) const
Definition poly.cpp:553
#define ALLOCATE_EXPONENTS(byte_len)
Definition monoid.hpp:62
#define EXPONENT_BYTE_SIZE(nvars)
Definition monoid.hpp:63

References ALLOCATE_EXPONENTS, EXPONENT_BYTE_SIZE, Ring::multi_degree(), and FreeModule::R.

Referenced by PathTracker::make().