Skip to main content

Module rules

Module rules 

Source
Expand description

Morphology rules for synaptogenesis.

Implements various connectivity patterns:

  • Projector: Map source neurons to destination maintaining topology
  • Block connections: Scaled block mapping
  • Expander: Scale coordinates from source to destination
  • Reducer: Binary encoding/decoding

Re-exports§

pub use patterns::find_destination_coordinates;
pub use patterns::find_source_coordinates;
pub use patterns::match_patterns_batch;
pub use patterns::Pattern3D;
pub use patterns::PatternElement;

Modules§

patterns
Pattern-based connectivity - wildcard matching and transformations.

Structs§

ProjectorParams
Parameters for projection mapping

Functions§

apply_vector_offset
Apply vector offset to source position.
match_vectors_batch
Match vectors - apply vector offset to source positions
syn_block_connection
Block connection mapping - identity mapping (like vector (0,0,0)).
syn_expander
Expander mapping - scales coordinates by dimension ratios.
syn_expander_batch
Batch expander for parallel processing (sequential fallback for WASM)
syn_last_to_first
Last to first - connect last neuron to first (feedback connection)
syn_lateral_pairs_x
Lateral pairs X - connect neurons in pairs along X axis Even neurons connect to right neighbor, odd to left neighbor
syn_projector
High-performance projection mapping.
syn_projector_batch
Batch projection for multiple neurons (parallel processing).
syn_randomizer
Randomizer - select random position in destination area
syn_reducer_x
Reducer mapping - maps source x position to multiple destination positions based on binary representation.