All2All#
- class brainpy.connect.All2All(*args, include_self=True, **kwargs)[source]#
Connect each neuron in first group to all neurons in the post-synaptic neuron groups. It means this kind of conn will create (num_pre x num_post) synapses.
- build_mat()[source]#
Build a binary matrix connection data.
If users want to customize their connections, please provide one of the following functions:
build_mat()
: build a matrix binary connection matrix.build_csr()
: build a csr sparse connection data.build_coo()
: build a coo sparse connection data.build_conn()
: deprecated.
- Returns:
conn – A binary matrix with the shape
(num_pre, num_post)
.- Return type: