mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-01 10:11:20 +08:00
Updated l2_normalize to remove zeros for sparsevec
This commit is contained in:
@@ -325,6 +325,6 @@ SELECT l2_normalize('{1:3e38}/1'::sparsevec);
|
||||
SELECT l2_normalize('{1:3e38,2:1e-37}/2'::sparsevec);
|
||||
l2_normalize
|
||||
--------------
|
||||
{1:1,2:0}/2
|
||||
{1:1}/2
|
||||
(1 row)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user