brainevent.update_fixed_pre_conn_on_binary_post

brainevent.update_fixed_pre_conn_on_binary_post#

brainevent.update_fixed_pre_conn_on_binary_post = <NameScope(brainevent.update_fixed_pre_conn_on_binary_post)>#

Post-spike STDP update for a FixedNumPerPost (favorable, row-driven).

For each firing post neuron j and every stored synapse (i, j): W[i, j] <- clip(W[i, j] + pre_trace[i], w_min, w_max).

Parameters:
  • data (jax.Array or Quantity) – Heterogeneous ELL weights, shape (num_post, num_conn).

  • indices (jax.Array) – Pre-synaptic ids, shape (num_post, num_conn).

  • pre_trace (jax.Array or Quantity) – Pre-synaptic trace, shape (num_pre,).

  • post_spike (jax.Array) – Post-synaptic spikes (bool or float), shape (num_post,).

  • w_min (jax.Array, Quantity, number, or None, optional) – Clip bounds (None disables the corresponding bound).

  • w_max (jax.Array, Quantity, number, or None, optional) – Clip bounds (None disables the corresponding bound).

  • shape (Tuple[int, int]) – Logical (num_pre, num_post).

  • backend (str | None) – Backend override.

Returns:

Updated weights, shape (num_post, num_conn).

Return type:

jax.Array or Quantity

Raises:

ValueError – If data is homogeneous (size-1) while the connectivity stores more than one synapse.

See also

brainevent.FixedNumPerPost.update_on_pre

Pre-spike (unfavorable) counterpart, served by the perm-fused CSR plasticity primitive.