mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 05:51:21 +08:00
Use double for distance [skip ci]
This commit is contained in:
@@ -485,7 +485,7 @@ HnswLoadElementFromTuple(HnswElement element, HnswElementTuple etup, bool loadHe
|
||||
/*
|
||||
* Calculate the distance between values
|
||||
*/
|
||||
static inline float
|
||||
static inline double
|
||||
HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation)
|
||||
{
|
||||
return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));
|
||||
|
||||
Reference in New Issue
Block a user