pgvector.git / summary / log / commit / refs
commit 8a05debda131f7cea83880c82ec3d8fba3dd0bf8
Author: Andrew Kane <andrew@ankane.org>
Date: Tue Jul 18 23:08:50 2023 +0000
Ran pgindent [skip ci]
src/vector.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/vector.c b/src/vector.c
index 3f683922..bc878a67 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -542,7 +542,7 @@ l2_distance(PG_FUNCTION_ARGS)
distance += diff * diff;
}
- PG_RETURN_FLOAT8(sqrt((double)distance));
+ PG_RETURN_FLOAT8(sqrt((double) distance));
}
/*
@@ -569,7 +569,7 @@ vector_l2_squared_distance(PG_FUNCTION_ARGS)
distance += diff * diff;
}
- PG_RETURN_FLOAT8((double)distance);
+ PG_RETURN_FLOAT8((double) distance);
}
/*
@@ -591,7 +591,7 @@ inner_product(PG_FUNCTION_ARGS)
for (int i = 0; i < a->dim; i++)
distance += ax[i] * bx[i];
- PG_RETURN_FLOAT8((double)distance);
+ PG_RETURN_FLOAT8((double) distance);
}
/*
@@ -613,7 +613,7 @@ vector_negative_inner_product(PG_FUNCTION_ARGS)
for (int i = 0; i < a->dim; i++)
distance += ax[i] * bx[i];
- PG_RETURN_FLOAT8((double)distance * -1);
+ PG_RETURN_FLOAT8((double) distance * -1);
}
/*
@@ -724,7 +724,7 @@ vector_norm(PG_FUNCTION_ARGS)
for (int i = 0; i < a->dim; i++)
norm += ax[i] * ax[i];
- PG_RETURN_FLOAT8(sqrt((double)norm));
+ PG_RETURN_FLOAT8(sqrt((double) norm));
}
/*
[parent: 1a81b2102962]