mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Restored HnswNormValue [skip ci]
This commit is contained in:
@@ -152,6 +152,15 @@ HnswOptionalProcInfo(Relation index, uint16 procnum)
|
||||
return index_getprocinfo(index, 1, procnum);
|
||||
}
|
||||
|
||||
/*
|
||||
* Normalize value
|
||||
*/
|
||||
Datum
|
||||
HnswNormValue(const HnswTypeInfo * typeInfo, Datum value)
|
||||
{
|
||||
return DirectFunctionCall1(typeInfo->normalize, value);
|
||||
}
|
||||
|
||||
/*
|
||||
* Check if non-zero norm
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user