Added vector_dims [skip ci]

This commit is contained in:
Andrew Kane
2024-10-13 18:46:09 -07:00
parent 98deaa7407
commit 9514a7ffcd
5 changed files with 24 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ SELECT intvec_cmp('[1,2,3]', '[1,2]');
SELECT intvec_cmp('[1,2]', '[2,3,4]');
SELECT intvec_cmp('[2,3]', '[1,2,3]');
SELECT vector_dims('[1,2,3]'::intvec);
SELECT l2_distance('[0,0]'::intvec, '[3,4]');
SELECT l2_distance('[0,0]'::intvec, '[0,1]');
SELECT l2_distance('[1,2]'::intvec, '[3]');