mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 15:16:54 +08:00
Added comment [skip ci]
This commit is contained in:
@@ -887,6 +887,7 @@ sparsevec_l2_normalize(PG_FUNCTION_ARGS)
|
|||||||
zeros++;
|
zeros++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* In the unlikely event there are zeros */
|
||||||
if (zeros > 0)
|
if (zeros > 0)
|
||||||
{
|
{
|
||||||
SparseVector *newResult = InitSparseVector(result->dim, result->nnz - zeros);
|
SparseVector *newResult = InitSparseVector(result->dim, result->nnz - zeros);
|
||||||
|
|||||||
Reference in New Issue
Block a user