mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-05 20:20:59 +08:00
Improved test [skip ci]
This commit is contained in:
@@ -346,6 +346,12 @@ SELECT l1_distance('{1:1,3:3,5:5,7:7,9:9}/9'::sparsevec, '{2:2,4:4,6:6,8:8}/9');
|
||||
45
|
||||
(1 row)
|
||||
|
||||
SELECT '{}/2'::sparsevec <+> '{1:3,2:4}/2';
|
||||
?column?
|
||||
----------
|
||||
7
|
||||
(1 row)
|
||||
|
||||
SELECT l2_normalize('{1:3,2:4}/2'::sparsevec);
|
||||
l2_normalize
|
||||
-----------------
|
||||
|
||||
Reference in New Issue
Block a user