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

◆ setHashValue()

void ModuleMonom::setHashValue ( ) const
inlineprivate

Definition at line 173 of file Polynomial.hpp.

174 {
175 int result = 0;
176 int* end = mValue + *mValue;
177 for (auto i = mValue+3; i < end; ++i)
178 result = 17*result + *i;
179 const_cast<int*>(mValue)[2] = result;
180 }
const int * end() const
VALGRIND_MAKE_MEM_DEFINED & result(result)

References end(), mValue, and result().

Referenced by hash().