Macaulay2 Engine
Loading...
Searching...
No Matches
◆
computeHashValue()
unsigned
int
M2::ARingQQGMP::computeHashValue
(
const
ElementType
&
a
)
const
inline
Definition at line
76
of file
aring-qq-gmp.hpp
.
77
{
78
unsigned
long
numhash = mpz_get_ui(mpq_numref(&a));
79
unsigned
long
denhash = mpz_get_ui(mpq_denref(&a));
80
return
static_cast<
unsigned
int
>
(13253 * numhash + 7647 * denhash);
81
}
M2
ARingQQGMP
Generated on
for Macaulay2 Engine by
1.15.0