Renamed functions to l2_norm [skip ci]

This commit is contained in:
Andrew Kane
2024-04-14 16:29:27 -07:00
parent bc199a33cd
commit 44e536b4ae
9 changed files with 53 additions and 53 deletions

View File

@@ -784,9 +784,9 @@ sparsevec_cosine_distance(PG_FUNCTION_ARGS)
/*
* Get the L2 norm of a sparse vector
*/
PGDLLEXPORT PG_FUNCTION_INFO_V1(sparsevec_norm);
PGDLLEXPORT PG_FUNCTION_INFO_V1(sparsevec_l2_norm);
Datum
sparsevec_norm(PG_FUNCTION_ARGS)
sparsevec_l2_norm(PG_FUNCTION_ARGS)
{
SparseVector *a = PG_GETARG_SPARSEVEC_P(0);
float *ax = SPARSEVEC_VALUES(a);