|
sPyNNaker neural_modelling 7.4.2
|
Interface for matrix generation. More...
#include <common-typedefs.h>Go to the source code of this file.
Functions | |
| matrix_generator_t | matrix_generator_init (uint32_t hash, void **region, void *synaptic_matrix) |
| Initialise a specific matrix generator. | |
| void | matrix_generator_free (matrix_generator_t generator) |
| Finish with a matrix generator. | |
| bool | matrix_generator_write_synapse (matrix_generator_t generator, uint32_t pre_index, uint16_t post_index, accum weight, uint16_t delay, unsigned long accum weight_scale) |
| Write a synapse with a matrix generator. | |
Interface for matrix generation.
Definition in file matrix_generator.h.
| matrix_generator_t matrix_generator_init | ( | uint32_t | hash, |
| void ** | region, | ||
| void * | synaptic_matrix | ||
| ) |
Initialise a specific matrix generator.
| [in] | hash | The identifier of the generator to initialise |
| [in,out] | region | The address to read data from; updated to position after data has been read |
| [in] | synaptic_matrix | The address of the base of the synaptic matrix |
Definition at line 99 of file matrix_generator.c.
| void matrix_generator_free | ( | matrix_generator_t | generator | ) |
Finish with a matrix generator.
| [in] | generator | The generator to free |
Definition at line 127 of file matrix_generator.c.
| bool matrix_generator_write_synapse | ( | matrix_generator_t | generator, |
| uint32_t | pre_index, | ||
| uint16_t | post_index, | ||
| accum | weight, | ||
| uint16_t | delay, | ||
| unsigned long accum | weight_scale | ||
| ) |
Write a synapse with a matrix generator.
| [in] | generator | The generator to use to generate the matrix |
| [in] | pre_index | The index of the pre-neuron relative to the start of the matrix |
| [in] | post_index | The index of the post-neuron on this core |
| [in] | weight | The weight of the synapse in raw form |
| [in] | delay | The delay of the synapse in time steps |
| [in] | weight_scale | The scale to apply to the weight if needed |
Definition at line 133 of file matrix_generator.c.