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

◆ nrf_dsp_cmplx_mag_i16()

void nrf_dsp_cmplx_mag_i16 ( const int16_t * p_input,
int16_t * p_output,
uint16_t num )

#include <include/nrf_edgeai/dsp/fast_math/nrf_dsp_cmplx_math.h>

Computes the magnitude of the elements of a complex data vector in ingeter 16-bit format.

Parameters
[in]p_inputInput array and the data is stored in an interleaved fashion [xR0, xI0, xR1, xI1, ..., xRn, xIn]. The input array should has a total of 2*num values
[out]p_outputOutput array where results should be written. The output array should has len of num samples
[in]numThe number of complex samples in the input array