MCPcopy Create free account
hub / github.com/asg017/sqlite-vss / vector_from

Function vector_from

src/sqlite-vector.cpp:194–205  ·  view source on GitHub ↗

TODO should return fvec, ivec, or bvec depending on input. How do bvec, though?

Source from the content-addressed store, hash-verified

192// TODO should return fvec, ivec, or bvec depending on input. How do bvec,
193// though?
194static void vector_from(sqlite3_context *context,
195 int argc,
196 sqlite3_value **argv) {
197
198 vector<float> vec;
199 vec.reserve(argc);
200 for (int i = 0; i < argc; i++) {
201 vec.push_back(sqlite3_value_double(argv[i]));
202 }
203
204 resultVector(context, &vec);
205}
206
207#pragma endregion
208

Callers

nothing calls this directly

Calls 1

resultVectorFunction · 0.85

Tested by

no test coverage detected