|
sPyNNaker neural_modelling 7.4.2
|
Common functions for kernel generation. More...
#include <common-typedefs.h>Go to the source code of this file.
Functions | |
| uint16_t | uidiv (uint32_t dividend, uint16_t divider, uint16_t *remainder) |
| Unsigned integer division. | |
| void | post_in_pre_world (uint16_t in_row, uint16_t in_col, uint16_t start_row, uint16_t start_col, uint16_t step_row, uint16_t step_col, uint16_t *out_row, uint16_t *out_col) |
| Get the post's coordinates in the pre's coordinate system. | |
| void | pre_in_post_world (uint16_t in_row, uint16_t in_col, uint16_t start_row, uint16_t start_col, uint16_t step_row, uint16_t step_col, int16_t *out_row, int16_t *out_col) |
| Get the pre's coordinates in the post's coordinate system. | |
Common functions for kernel generation.
Definition in file common_kernel.h.
| uint16_t uidiv | ( | uint32_t | dividend, |
| uint16_t | divider, | ||
| uint16_t * | remainder | ||
| ) |
Unsigned integer division.
| [in] | dividend | The value being divided |
| [in] | divider | The value doing the dividing |
| [out] | remainder | The remainder |
Definition at line 29 of file common_kernel.c.
| void post_in_pre_world | ( | uint16_t | in_row, |
| uint16_t | in_col, | ||
| uint16_t | start_row, | ||
| uint16_t | start_col, | ||
| uint16_t | step_row, | ||
| uint16_t | step_col, | ||
| uint16_t * | out_row, | ||
| uint16_t * | out_col | ||
| ) |
Get the post's coordinates in the pre's coordinate system.
| [in] | in_row | post row coordinate |
| [in] | in_col | post column coordinate |
| [in] | start_row | row offset |
| [in] | start_col | column offset |
| [in] | step_row | row step |
| [in] | step_col | column step |
| [out] | out_row | pre row coordinate |
| [out] | out_col | pre column coordinate |
Definition at line 41 of file common_kernel.c.
| void pre_in_post_world | ( | uint16_t | in_row, |
| uint16_t | in_col, | ||
| uint16_t | start_row, | ||
| uint16_t | start_col, | ||
| uint16_t | step_row, | ||
| uint16_t | step_col, | ||
| int16_t * | out_row, | ||
| int16_t * | out_col | ||
| ) |
Get the pre's coordinates in the post's coordinate system.
| [in] | in_row | pre row coordinate |
| [in] | in_col | pre column coordinate |
| [in] | start_row | row offset |
| [in] | start_col | column offset |
| [in] | step_row | row step |
| [in] | step_col | column step |
| [out] | out_row | post row coordinate |
| [out] | out_col | post column coordinate |
Definition at line 49 of file common_kernel.c.