MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / fill_vec

Function fill_vec

tests/test_semantic.c:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81/* ── Cosine similarity ───────────────────────────────────────────── */
82
83static void fill_vec(cbm_sem_vec_t *v, float val) {
84 for (int i = 0; i < CBM_SEM_DIM; i++) v->v[i] = val;
85}
86
87TEST(sem_cosine_identical) {
88 cbm_sem_vec_t a, b;

Callers 1

test_semantic.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected