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

◆ computeHashValue()

unsigned int RingMap::computeHashValue ( ) const
protectedvirtual

Implements EngineObject.

Definition at line 101 of file ringmap.cpp.

102{
103 unsigned int hashval = 4565 * get_ring()->hash();
104 for (int i = 0; i < nvars; i++)
105 {
106 hashval =
107 46343 * hashval + get_ring()->computeHashValue(_elem[i].bigelem);
108 }
109 return hashval;
110}
unsigned int hash() const
Definition hash.hpp:106
virtual unsigned int computeHashValue(const ring_elem a) const =0
const Ring * get_ring() const
Definition ringmap.hpp:111
int nvars
Definition ringmap.hpp:98
var * _elem
Definition ringmap.hpp:99

References _elem, Ring::computeHashValue(), get_ring(), MutableEngineObject::hash(), and nvars.