![]() |
Edge AI Add-on API 2.3.0
|
| nrf_axon_result_e nrf_axon_exp_11p12 | ( | const int32_t * | in_ptr, |
| int32_t * | out_ptr, | ||
| uint16_t | length, | ||
| nrf_axon_syncmode_blocking_e | block_mode, | ||
| bool | keep_reservation ) |
#include <include/drivers/axon/nrf_axon_dsp_intrinsics.h>
"exp"=> "exponent" (e to the x) Calculates the exponent of vector input, output=exp(input). Input and output are both interpreted as q11.12. If the input radix isn't 11.12, there is no analogous way to logn() to correct the output. (ie, one can't add or multiple by an offset to correct the result). The effective input range (without saturation) is -8.3 to 7.46
| in_ptr | pointer to the input, q11.12 sign-extended to 32bits. |
| out_ptr | pointer to the output, q11.12 sign-extended to 32bits. Output can overlap/overwrite input. |
| length | length of the input/output (in elements). Must be a multiple of 2, at least 2, and maximum of 512. |
| block_mode | recommnended to be set to NRF_AXON_SYNC_MODE_BLOCKING_POLLING. |
| keep_reservation | set to true if there are subsequent axon operations to execute immediately on completion. true prevents axon from be taken by another user and/or being powered off. Set to false if axon will not be used immediately after to free axon for other users and/or power down if idle. |