brainpy.connect.GridEight#

class brainpy.connect.GridEight(include_self=False, periodic_boundary=False, **kwargs)[source]#

The nearest eight neighbors conn method.

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

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

__init__(include_self=False, periodic_boundary=False, **kwargs)[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