brainpy.connect.GridFour#

class brainpy.connect.GridFour(include_self=False, periodic_boundary=False)[source]#

The nearest four neighbors connection method.

Parameters
  • periodic_boundary (bool) – Whether the neuron encode the value space with the periodic boundary. .. versionadded:: 2.2.3.2

  • include_self (bool) – Whether create connection at the same position.

__init__(include_self=False, periodic_boundary=False)[source]#

Methods

__init__([include_self, periodic_boundary])

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