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

◆ nrf_dsp_cmplx_mag_f32()

void nrf_dsp_cmplx_mag_f32 ( const flt32_t * p_input,
flt32_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.

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