EventCSRLinear

EventCSRLinear#

class brainpy.dnn.EventCSRLinear(conn, weight, sharding=None, mode=None, name=None, transpose=True)[source]#

Synaptic matrix multiplication with event CSR sparse computation.

It performs the computation of:

\[y = x @ M\]

where \(y\) is the postsynaptic value, \(x\) the presynaptic spikes, \(M\) the synaptic weight using a CSR sparse matrix.

Parameters:
update(x)[source]#

The function to specify the updating rule.