mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +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
|
* Calculate the distance between values
|
||||||
*/
|
*/
|
||||||
static inline float
|
static inline double
|
||||||
HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation)
|
HnswGetDistance(Datum a, Datum b, FmgrInfo *procinfo, Oid collation)
|
||||||
{
|
{
|
||||||
return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));
|
return DatumGetFloat8(FunctionCall2Coll(procinfo, collation, a, b));
|
||||||
|
|||||||
Reference in New Issue
Block a user