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

◆ nrf_axon_logn_11p12()

nrf_axon_result_e nrf_axon_logn_11p12 ( const int32_t * in_ptr,
int32_t * out_ptr,
uint16_t length,
nrf_axon_syncmode_blocking_e block_mode,
bool keep_reservation )

"logn"=> "Natural Log" Calculates the natural log of vector input, output=ln(input). Input and output are both interpreted as q11.12. If the input radix doesn't match 11.12, then an offset can be added to the output to correct the result for radix 12. For an input radix "r", the offset to add is ln(2^^r) << 12.

Parameters
inputpointer to the input, q11.12 sign-extended to 32bits.
input_lengthlength of the input (in elements). Must be a multiple of 2, at least 2, and maximum of 512.
outputpointer to the output, q11.12 sign-extended to 32bits. Output can overlap/overwrite input.
cmd_buf_info_ptrcompiled axon code is appended into this structure.
Returns
kAxonResultSuccess on success or a negative error code (see nrf_axon_result_e)