sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Data Structures | Functions
connection_generator_one_to_one_offset.h File Reference

one_to_one_offset Connection generator implementation More...

#include <synapse_expander/generator_types.h>

Go to the source code of this file.

Data Structures

struct  one_to_one_offset
 The parameters to be passed around for this connector. More...
 

Functions

static void * connection_generator_one_to_one_offset_initialise (void **region)
 Initialise the one_to_one_offset connection generator.
 
static void connection_generator_one_to_one_offset_free (void *generator)
 Free the one_to_one_offset connection generator.
 
static bool connection_generator_one_to_one_offset_generate (void *generator, uint32_t pre_lo, uint32_t pre_hi, uint32_t post_lo, uint32_t post_hi, uint32_t post_index, uint32_t post_slice_start, uint32_t post_slice_count, unsigned long accum weight_scale, accum timestep_per_delay, param_generator_t weight_generator, param_generator_t delay_generator, matrix_generator_t matrix_generator)
 Generate connections with the one_to_one_offset connection generator.
 

Detailed Description

one_to_one_offset Connection generator implementation

Definition in file connection_generator_one_to_one_offset.h.


Data Structure Documentation

◆ one_to_one_offset

struct one_to_one_offset

The parameters to be passed around for this connector.

Definition at line 25 of file connection_generator_one_to_one_offset.h.

Data Fields
int32_t offset
uint32_t wrap
uint32_t n_neurons_per_group

Function Documentation

◆ connection_generator_one_to_one_offset_initialise()

static void * connection_generator_one_to_one_offset_initialise ( void **  region)
static

Initialise the one_to_one_offset connection generator.

Parameters
[in,out]regionRegion to read parameters from. Should be updated to position just after parameters after calling.
Returns
A data item to be passed in to other functions later on

Definition at line 42 of file connection_generator_one_to_one_offset.h.

◆ connection_generator_one_to_one_offset_free()

static void connection_generator_one_to_one_offset_free ( void *  generator)
static

Free the one_to_one_offset connection generator.

Parameters
[in]generatorThe generator to free

Definition at line 62 of file connection_generator_one_to_one_offset.h.

◆ connection_generator_one_to_one_offset_generate()

static bool connection_generator_one_to_one_offset_generate ( void *  generator,
uint32_t  pre_lo,
uint32_t  pre_hi,
uint32_t  post_lo,
uint32_t  post_hi,
uint32_t  post_index,
uint32_t  post_slice_start,
uint32_t  post_slice_count,
unsigned long accum  weight_scale,
accum  timestep_per_delay,
param_generator_t  weight_generator,
param_generator_t  delay_generator,
matrix_generator_t  matrix_generator 
)
static

Generate connections with the one_to_one_offset connection generator.

Parameters
[in]generatorThe generator to use to generate connections
[in]pre_slice_startThe start of the slice of the pre-population being generated
[in]pre_slice_countThe number of neurons in the slice of the pre-population being generated
[in]pre_neuron_indexThe index of the neuron in the pre-population being generated
[in]post_slice_startThe start of the slice of the post-population being generated
[in]post_slice_countThe number of neurons in the slice of the post-population being generated
[in]max_row_lengthThe maximum number of connections to generate
[in,out]indicesAn array into which the core-relative post-indices should be placed. This will be initialised to be max_row_length in size
Returns
The number of connections generated

Definition at line 85 of file connection_generator_one_to_one_offset.h.