mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-29 09:11:17 +08:00
Added tests for sparsevec_norm [skip ci]
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
SELECT round(halfvec_norm('[1,1]')::numeric, 5);
|
||||
SELECT halfvec_norm('[3,4]');
|
||||
SELECT halfvec_norm('[0,1]');
|
||||
|
||||
SELECT l2_distance('[0,0]'::halfvec, '[3,4]');
|
||||
SELECT l2_distance('[0,0]'::halfvec, '[0,1]');
|
||||
SELECT l2_distance('[1,2]'::halfvec, '[3]');
|
||||
@@ -34,7 +38,3 @@ SELECT subvector('[1,2,3,4,5]'::halfvec, 3, 9);
|
||||
SELECT subvector('[1,2,3,4,5]'::halfvec, 1, 0);
|
||||
SELECT subvector('[1,2,3,4,5]'::halfvec, 3, -1);
|
||||
SELECT subvector('[1,2,3,4,5]'::halfvec, -1, 2);
|
||||
|
||||
SELECT round(halfvec_norm('[1,1]')::numeric, 5);
|
||||
SELECT halfvec_norm('[3,4]');
|
||||
SELECT halfvec_norm('[0,1]');
|
||||
|
||||
Reference in New Issue
Block a user