brainpy.connect.FixedPostNum#

class brainpy.connect.FixedPostNum(num, include_self=True, allow_multi_conn=False, seed=None)[source]#

Connect the fixed number of post-synaptic neurons for each pre-synaptic neuron.

Parameters
  • num (float, int) – The conn probability (if “num” is float) or the fixed number of connectivity (if “num” is int).

  • include_self (bool) – Whether create (i, i) conn ?

  • seed (None, int) – Seed the random generator.

  • allow_multi_conn (bool) –

    Allow one pre-synaptic neuron connects to multiple post-synaptic neurons?

    New in version 2.2.3.2.

__init__(num, include_self=True, allow_multi_conn=False, seed=None)#

Methods

__init__(num[, include_self, ...])

build_conn()

build connections with certain data type.

build_coo()

Build a coo sparse connection data.

build_csr()

Build a csr sparse connection data.

build_mat()

Build a binary matrix connection data.

require(*structures)

Require all the connection data needed.

requires(*structures)

Require all the connection data needed.

Attributes

is_version2_style