mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 00:08:30 +00:00
Improved tests for l2_norm [skip ci]
This commit is contained in:
1 parent
158481ff2a
commit
d1affcc667
6 files changed
+42
No files matched your search
@@ -23,6 +23,8 @@ SELECT round(l2_norm('{1:1,2:1}/2'::sparsevec)::numeric, 5);
|
||||
SELECT l2_norm('{1:3,2:4}/2'::sparsevec);
|
||||
SELECT l2_norm('{2:1}/2'::sparsevec);
|
||||
SELECT l2_norm('{1:3e37,2:4e37}/2'::sparsevec)::real;
|
||||
SELECT l2_norm('{}/2'::sparsevec);
|
||||
SELECT l2_norm('{1:2}/1'::sparsevec);
|
||||
|
||||
SELECT l2_distance('{}/2'::sparsevec, '{1:3,2:4}/2');
|
||||
SELECT l2_distance('{1:3}/2'::sparsevec, '{2:4}/2');
|
||||
|
||||
Reference in new issue
Block a user