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

◆ weight()

int binomial_ring::weight ( monomial0 m) const

Definition at line 110 of file gb-toric.cpp.

111{
112 if (have_weights) return -m[nvars + 1];
113 return 0;
114}
bool have_weights
Definition gb-toric.hpp:96

References have_weights, monomial, and nvars.

Referenced by binomial_to_vector().