mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-05 00:38:39 +00:00
Improved consistency with vector [skip ci]
This commit is contained in:
1 parent
ed2e460f00
commit
034713c803
1 file changed
+2
-2
+2
-2
@@ -788,7 +788,7 @@ sparsevec_inner_product(PG_FUNCTION_ARGS)
|
||||
|
||||
CheckDims(a, b);
|
||||
|
||||
PG_RETURN_FLOAT8(SparsevecInnerProduct(a, b));
|
||||
PG_RETURN_FLOAT8((double) SparsevecInnerProduct(a, b));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -803,7 +803,7 @@ sparsevec_negative_inner_product(PG_FUNCTION_ARGS)
|
||||
|
||||
CheckDims(a, b);
|
||||
|
||||
PG_RETURN_FLOAT8(-SparsevecInnerProduct(a, b));
|
||||
PG_RETURN_FLOAT8((double) -SparsevecInnerProduct(a, b));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user