brainpy.connect.GridN#

class brainpy.connect.GridN(N=1, include_self=False)[source]#

The nearest (2*N+1) * (2*N+1) neighbors conn method.

Parameters
  • N (int) –

    Extend of the conn scope. For example: When N=1,

    [x x x] [x I x] [x x x]

    When N=2,

    [x x x x x] [x x x x x] [x x I x x] [x x x x x] [x x x x x]

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

__init__(N=1, include_self=False)[source]#

Methods

__init__([N, include_self])

build_conn()

build connections with certain data type.

check(structures)

make_returns(structures, conn_data[, csr, ...])

Make the desired synaptic structures and return them.

require(*structures)

requires(*structures)