All But Me connection generator implementation.
More...
Go to the source code of this file.
|
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.
|
|
All But Me connection generator implementation.
Definition in file connection_generator_all_but_me.h.
◆ 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
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 |
|
◆ 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] | region | Region 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 |
◆ 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 |
◆ div_mod()
static void div_mod |
( |
uint32_t |
dividend, |
|
|
uint32_t |
divisor, |
|
|
uint32_t * |
div, |
|
|
uint32_t * |
mod |
|
) |
| |
|
inlinestatic |
◆ 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 |
◆ 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] | generator | The generator to use to generate connections |
[in] | pre_slice_start | The start of the slice of the pre-population being generated |
[in] | pre_slice_count | The number of neurons in the slice of the pre-population being generated |
[in] | post_slice_start | The start of the slice of the post-population being generated |
[in] | post_slice_count | The number of neurons in the slice of the post-population being generated |
Definition at line 156 of file connection_generator_all_but_me.h.