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

Function CheckStateArray

vexdb_pg/src/floatvector.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static float8 *CheckStateArray(ArrayType *statearray, const char *caller)
194{
195 if (ARR_NDIM(statearray) != 1 || ARR_DIMS(statearray)[0] < 1 ||
196 ARR_HASNULL(statearray) || ARR_ELEMTYPE(statearray) != FLOAT8OID) {
197 elog(ERROR, "%s: expected state array", caller);
198 }
199 return (float8 *)ARR_DATA_PTR(statearray);
200}
201
202extern "C" {
203

Callers 3

floatvector_accumFunction · 0.85
floatvector_combineFunction · 0.85
floatvector_avgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected