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

Function cbm_sem_vec_add_scaled

src/semantic/semantic.c:486–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void cbm_sem_vec_add_scaled(cbm_sem_vec_t *dst, const cbm_sem_vec_t *src, float scale) {
487 if (!dst || !src) {
488 return;
489 }
490 for (int i = 0; i < CBM_SEM_DIM; i++) {
491 dst->v[i] += scale * src->v[i];
492 }
493}
494
495/* ── Corpus (IDF + Random Indexing enrichment) ───────────────────── */
496

Callers 5

build_api_vecFunction · 0.85
build_type_vecFunction · 0.85
build_deco_vecFunction · 0.85
vec_build_workerFunction · 0.85
test_semantic.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected