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

Function fill_vec

tests/test_semantic.c:95–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93/* ── Cosine similarity ───────────────────────────────────────────── */
94
95static void fill_vec(cbm_sem_vec_t *v, float val) {
96 for (int i = 0; i < CBM_SEM_DIM; i++)
97 v->v[i] = val;
98}
99
100TEST(sem_cosine_identical) {
101 cbm_sem_vec_t a, b;

Callers 1

test_semantic.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected