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

◆ one()

bool MonomialInfo::one ( long comp,
packed_monomial result ) const
inline

Definition at line 235 of file moninfo.hpp.

236 {
237 // Pack the vector (0,...,0,comp) with nvars zeroes.
238 // Hash value = 0. ??? Should the hash-function take component into account
239 // ???
240 result[0] = 0;
241 result[1] = comp;
242 for (int i = 2; i < nslots; i++) result[i] = 0;
243 return true;
244 }
VALGRIND_MAKE_MEM_DEFINED & result(result)

References nslots, and result().