1.2.2.2 mchp_cmplx_mag_squared_f32()
void mchp_cmplx_mag_squared_f32 (const float32_t * pSrc, float32_t * pDst, uint32_t numSamples)
Single-precision floating-point complex magnitude squared.
Computes: pDst[n] = (real[n] * real[n]) + (imag[n] * imag[n])
This function avoids the square-root operation and is typically used when only relative magnitudes or power comparisons are required.
| in | pSrc |
points to the interleaved complex input vector |
| out | pDst |
points to the real-valued output vector |
| in | numSamples |
number of complex samples in the input vector |
Note:
Output vector length must be at least numSamples elements.
