mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-30 09:41:15 +08:00
Prevent overflow at cost to speed
This commit is contained in:
@@ -16,6 +16,7 @@ SELECT normalize_l2('[3,4]');
|
||||
SELECT normalize_l2('[3,0]');
|
||||
SELECT normalize_l2('[0,0.1]');
|
||||
SELECT normalize_l2('[0,0]');
|
||||
SELECT normalize_l2('[3e38]');
|
||||
|
||||
SELECT l2_distance('[0,0]', '[3,4]');
|
||||
SELECT l2_distance('[0,0]', '[0,1]');
|
||||
|
||||
Reference in New Issue
Block a user