mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 08:18:46 +00:00
Improved sparsevec test [skip ci]
This commit is contained in:
1 parent
f1a46f1025
commit
d3e5a87df6
2 files changed
+3
-3
No files matched your search
@@ -33,7 +33,7 @@ SELECT '{}/2'::sparsevec <-> '{1:3,2:4}/2';
|
||||
SELECT inner_product('{1:1,2:2}/2'::sparsevec, '{1:2,2:4}/2');
|
||||
SELECT inner_product('{1:1,2:2}/2'::sparsevec, '{1:3}/1');
|
||||
SELECT inner_product('{1:3e38}/1'::sparsevec, '{1:3e38}/1');
|
||||
SELECT inner_product('{1:1,3:3,5:5}/5'::sparsevec, '{2:2,3:3,4:4}/5');
|
||||
SELECT inner_product('{1:1,3:3,5:5}/5'::sparsevec, '{2:4,3:6,4:8}/5');
|
||||
|
||||
SELECT cosine_distance('{1:1,2:2}/2'::sparsevec, '{1:2,2:4}/2');
|
||||
SELECT cosine_distance('{1:1,2:2}/2'::sparsevec, '{}/2');
|
||||
|
||||
Reference in new issue
Block a user