|
sPyNNaker neural_modelling 7.4.2
|
Support functions for STDP. More...
Go to the source code of this file.
Data Structures | |
| struct | int16_lut |
| Lookup Table of 16-bit integers. More... | |
Macros | |
| #define | MIN(X, Y) ((X) < (Y) ? (X) : (Y)) |
| Minimum. Evaluates arguments twice. | |
| #define | MAX(X, Y) ((X) > (Y) ? (X) : (Y)) |
| Maximum. Evaluates arguments twice. | |
Functions | |
| static int16_lut * | maths_copy_int16_lut (address_t *address) |
| Copy a Lookup Table from SDRAM to DTCM, updating the address. | |
| static int32_t | maths_lut_exponential_decay (uint32_t time, const int16_lut *lut) |
| Get value from lookup table. | |
| static int32_t | maths_clamp_pot (int32_t x, uint32_t shift) |
| Clamp to fit in number of bits. | |
| static int32_t | maths_mul_16x16 (int16_t x, int16_t y) |
| multiply two 16-bit numbers to get a 32-bit number. | |
| static int32_t | maths_fixed_mul16 (int32_t a, int32_t b, const int32_t fixed_point_position) |
| multiply two 16-bit fixed point numbers (encoded in int32_t) | |
| static int32_t | maths_fixed_mul32 (int32_t a, int32_t b, const int32_t fixed_point_position) |
| multiply two 32-bit fixed point numbers (encoded in int32_t) | |
Support functions for STDP.
Definition in file maths.h.
| struct int16_lut |
| #define MIN | ( | X, | |
| Y | |||
| ) | ((X) < (Y) ? (X) : (Y)) |
| #define MAX | ( | X, | |
| Y | |||
| ) | ((X) > (Y) ? (X) : (Y)) |
|
inlinestatic |
Get value from lookup table.
| [in] | time | The time that we are mapping |
| [in] | lut | The lookup table (result of maths_copy_int16_lut()) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |