We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5d4cb5 + e24c0dc commit c5685a6Copy full SHA for c5685a6
1 file changed
numpy/_core/src/multiarray/unique.cpp
@@ -63,7 +63,7 @@ empty_array_like(PyArrayObject *arr, npy_intp length)
63
64
template <typename T>
65
size_t hash_integer(const T *value, npy_bool equal_nan) {
66
- return std::hash<T>{}(*value);
+ return npy_fnv1a(reinterpret_cast<const unsigned char*>(value), sizeof(T));
67
}
68
69
template <typename S, typename T, S (*real)(T), S (*imag)(T)>
0 commit comments