Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
736 B
C
23 lines
736 B
C
#ifndef LINEAR_ASSIGNMENT_H
|
|
#define LINEAR_ASSIGNMENT_H
|
|
|
|
/*
|
|
* Compute an assignment of columns -> rows (and vice versa) such that every
|
|
* column is assigned to at most one row (and vice versa) minimizing the
|
|
* overall cost.
|
|
*
|
|
* The parameter `cost` is the cost matrix: the cost to assign column j to row
|
|
* i is `cost[j + column_count * i].
|
|
*
|
|
* The arrays column2row and row2column will be populated with the respective
|
|
* assignments (-1 for unassigned, which can happen only if column_count !=
|
|
* row_count).
|
|
*/
|
|
void compute_assignment(int column_count, int row_count, int *cost,
|
|
int *column2row, int *row2column);
|
|
|
|
/* The maximal cost in the cost matrix (to prevent integer overflows). */
|
|
#define COST_MAX (1<<16)
|
|
|
|
#endif
|