brainpy.math.operators.pre2post_mean
brainpy.math.operators.pre2post_mean#
- brainpy.math.operators.pre2post_mean(pre_values, post_num, post_ids, pre_ids=None)[source]#
The pre-to-post synaptic mean computation.
- Parameters
pre_values (float, jax.numpy.ndarray, JaxArray, Variable) – The pre-synaptic values.
pre_ids (jax.numpy.ndarray, JaxArray) – The connected pre-synaptic neuron ids.
post_ids (jax.numpy.ndarray, JaxArray) – The connected post-synaptic neuron ids.
post_num (int) – Output dimension. The number of post-synaptic neurons.
- Returns
post_val – The value with the size of post-synaptic neurons.
- Return type
jax.numpy.ndarray, JaxArray