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

◆ one()

bool ResMonoidDense::one ( component_index comp,
res_packed_monomial result ) const
inline

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

204 {
205 // Pack the vector (0,...,0,comp) with nvars zeroes.
206 // Hash value = 0. ??? Should the hash-function take component into account
207 // ???
208 result[0] = 0;
209 result[1] = comp;
210 for (int i = 2; i < nslots; i++) result[i] = 0;
211 return true;
212 }
VALGRIND_MAKE_MEM_DEFINED & result(result)

References nslots, and result().