sPyNNaker neural_modelling 7.3.1
Loading...
Searching...
No Matches
Functions
common_kernel.h File Reference

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.
 

Detailed Description

Common functions for kernel generation.

Definition in file common_kernel.h.

Function Documentation

◆ uidiv()

uint16_t uidiv ( uint32_t  dividend,
uint16_t  divider,
uint16_t *  remainder 
)

Unsigned integer division.

Parameters
[in]dividendThe value being divided
[in]dividerThe value doing the dividing
[out]remainderThe remainder
Returns
The quotient

Definition at line 29 of file common_kernel.c.

◆ post_in_pre_world()

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.

Parameters
[in]in_rowpost row coordinate
[in]in_colpost column coordinate
[in]start_rowrow offset
[in]start_colcolumn offset
[in]step_rowrow step
[in]step_colcolumn step
[out]out_rowpre row coordinate
[out]out_colpre column coordinate

Definition at line 41 of file common_kernel.c.

◆ pre_in_post_world()

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.

Parameters
[in]in_rowpre row coordinate
[in]in_colpre column coordinate
[in]start_rowrow offset
[in]start_colcolumn offset
[in]step_rowrow step
[in]step_colcolumn step
[out]out_rowpost row coordinate
[out]out_colpost column coordinate

Definition at line 49 of file common_kernel.c.