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

◆ hash()

unsigned int EngineObject::hash ( ) const
inline

Definition at line 70 of file hash.hpp.

71 {
72 if (mHashValue == 0)
73 {
75 if (mHashValue == 0) mHashValue = 1;
76 }
77 return mHashValue;
78 }
virtual unsigned int computeHashValue() const =0
unsigned int mHashValue
Definition hash.hpp:64

References computeHashValue(), and mHashValue.

Referenced by Matrix::is_equal(), rawFreeModuleHash(), rawMatrixHash(), rawMonomialIdealHash(), rawRingElementHash(), and rawRingMapHash().