MCPcopy Create free account
hub / github.com/VexDB-THU/VexDB-Lite / InitFloatVector

Function InitFloatVector

vexdb_pg/src/floatvector.cpp:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184FloatVector *InitFloatVector(int dim)
185{
186 int size = FLOATVECTOR_SIZE(dim);
187 FloatVector *result = (FloatVector *) palloc0(size);
188 SET_VARSIZE(result, size);
189 result->dim = dim;
190 return result;
191}
192
193static float8 *CheckStateArray(ArrayType *statearray, const char *caller)
194{

Callers 9

floatvector_inputFunction · 0.85
floatvector_recvFunction · 0.85
array_to_floatvectorFunction · 0.85
l2_normalizeFunction · 0.85
floatvector_addFunction · 0.85
floatvector_subFunction · 0.85
floatvector_avgFunction · 0.85
subfloatvectorFunction · 0.85
AnnNormValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected