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

◆ check_monomial()

bool ResMonoidDense::check_monomial ( res_const_packed_monomial m) const
inline

Definition at line 320 of file res-moninfo-dense.hpp.

321 {
322 // Determine if m represents a well-formed monomial.
323 m++;
324 for (int j = nslots - 1; j > 0; --j)
325 if (mask & (*m++)) return false;
326 return true;
327 }
res_monomial_word mask

References mask, and nslots.

Referenced by mult().