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

All But Me connection generator implementation. More...

#include <stdbool.h>
#include <synapse_expander/generator_types.h>

Go to the source code of this file.

Data Structures

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

Functions

static void * connection_generator_all_but_me_initialise (void **region)
 Initialise the all but me connection generator.
 
static void connection_generator_all_but_me_free (void *generator)
 Free the All But Me connection generator.
 
static bool make_all_but_me_conn (accum weight, param_generator_t delay_generator, matrix_generator_t matrix_generator, uint32_t pre, uint32_t post, unsigned long accum weight_scale, accum timestep_per_delay)
 
static void div_mod (uint32_t dividend, uint32_t divisor, uint32_t *div, uint32_t *mod)
 
static accum get_weight (struct all_but_me *obj, param_generator_t weight_generator, uint32_t pre_value, uint32_t post_value)
 
static bool connection_generator_all_but_me_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 all but me connection generator.
 

Detailed Description

All But Me connection generator implementation.

Definition in file connection_generator_all_but_me.h.


Data Structure Documentation

◆ all_but_me_conf

struct all_but_me_conf

The parameters to be passed around for this connector.

Definition at line 28 of file connection_generator_all_but_me.h.

Data Fields
uint32_t n_values
uint32_t has_weights
accum weights[]

◆ all_but_me

struct all_but_me

The parameters to be passed around for this connector.

Definition at line 41 of file connection_generator_all_but_me.h.

Data Fields
uint32_t n_neurons_per_group
accum * weights

Function Documentation

◆ connection_generator_all_but_me_initialise()

static void * connection_generator_all_but_me_initialise ( void **  region)
static

Initialise the all but me 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 57 of file connection_generator_all_but_me.h.

◆ connection_generator_all_but_me_free()

static void connection_generator_all_but_me_free ( void *  generator)
static

Free the All But Me connection generator.

Parameters
[in]generatorThe generator to free

Definition at line 92 of file connection_generator_all_but_me.h.

◆ make_all_but_me_conn()

static bool make_all_but_me_conn ( accum  weight,
param_generator_t  delay_generator,
matrix_generator_t  matrix_generator,
uint32_t  pre,
uint32_t  post,
unsigned long accum  weight_scale,
accum  timestep_per_delay 
)
inlinestatic

Definition at line 96 of file connection_generator_all_but_me.h.

◆ div_mod()

static void div_mod ( uint32_t  dividend,
uint32_t  divisor,
uint32_t *  div,
uint32_t *  mod 
)
inlinestatic

Definition at line 110 of file connection_generator_all_but_me.h.

◆ get_weight()

static accum get_weight ( struct all_but_me obj,
param_generator_t  weight_generator,
uint32_t  pre_value,
uint32_t  post_value 
)
inlinestatic

Get the weight for a given pre value and post value.

Definition at line 125 of file connection_generator_all_but_me.h.

◆ connection_generator_all_but_me_generate()

static bool connection_generator_all_but_me_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 all but me 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]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

Definition at line 156 of file connection_generator_all_but_me.h.