AllToAll#
- class braintools.conn.AllToAll(include_self_connections=False, weight=None, delay=None, **kwargs)#
Fully connected network where every neuron connects to every other neuron.
- Parameters:
include_self_connections (
bool) – Whether neurons connect to themselves.weight (
Initialization|float|int|ndarray|Array|Quantity|None) – Weight initialization for all connections. Bare scalars stay dimensionless; pass abrainunitQuantity (e.g.0.5 * u.nS) for physical units. If None, no weights are generated.delay (
Initialization|float|int|ndarray|Array|Quantity|None) – Delay initialization for all connections. Bare scalars stay dimensionless; pass abrainunitQuantity (e.g.1.0 * u.ms) for physical units. If None, no delays are generated.
Examples
>>> import brainunit as u >>> from braintools.init import Constant >>> all_to_all = AllToAll( ... weight=Constant(0.5 * u.nS), ... delay=Constant(1.0 * u.ms) ... ) >>> result = all_to_all(pre_size=50, post_size=50)