Skip to content

Sparse Maps

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Sparse Maps

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

Module: src/sparse.rs

SparseSynapticMap<const N: usize>

CSR-style sparse weight matrix for fixed neuron count N.

API Role
new / from_dense / from_adjacency Build
get_row / get_weight / set_weight Access
nnz / sparsity Density stats
to_dense / to_gpu_arrays Export

Builder

SparseSynapticMapBuilder<N>:

  • connect(from, to, weight)
  • with_self_weight / with_self_connections
  • with_lateral_inhibition
  • with_sparsity_threshold
  • build()

Adaptation-aware routing

Type Role
NeuronStateSnapshot Per-neuron adaptation / error tracking
RoutingPolicy Score = base weight − adaptation penalty + error bonus; should_activate
TelemetrySnapshot Deprecated alias of NeuronStateSnapshot
let score = policy.score(neuron, &snapshot, base_weight);
if policy.should_activate(score) { /* … */ }

Related


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: 1486191 (main) Devin DeepWiki: commit 14861916 · synaptic-mesh

Clone this wiki locally