Update linalg.c

This commit is contained in:
blueloveTH 2024-11-23 02:01:09 +08:00
parent b31795bf83
commit 5847910c78

View File

@ -305,7 +305,7 @@ DEF_VECTOR_OPS(3)
c11_vec##D##i v = py_tovec##D##i(argv); \
uint64_t hash = 0; \
for(int i = 0; i < D; i++) \
hash = hash * 31 + (uint32_t)v.data[i] * C; \
hash = hash * 131071 + (uint32_t)v.data[i] * C; \
py_newint(py_retval(), (py_i64)hash); \
return true; \
}