Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_axon_mar_16_24_32()

nrf_axon_result_e nrf_axon_mar_16_24_32 ( const int16_t * x_ptr,
const int32_t * y_ptr,
int32_t * out_ptr,
uint16_t length,
uint8_t rounding_bits,
nrf_axon_syncmode_blocking_e block_mode,
bool keep_reservation )

"Mar" => "Multiply, Accumulate, recursive" sums the products of elements in input vector X and input vector Y (ie, dot product)

Parameters
x_ptrx vector input. 16bit integers packed.
y_ptry vector input. 24bit integers unpacked.
out_ptroutput scalar. 32bit integer rounded by rounding_bits.
lengthNumber of elements in the vectors (data samples). Must be a multiple of 4, at least 8, and no greater than 1024.
rounding_bitsNumber of bits to round the output by. 0 => no rounding, maximum of 31.
Returns
kAxonResultSuccess on success or a negative error code (see nrf_axon_result_e)