STM32F1 CMSIS DSP Complex Math Functions

Started by tha, July 18, 2021, 07:30:46 AM

Previous topic - Next topic

tha


tha



Description

คูณ a complex vector ด้วย complex vector อื่นและสร้าง a complex result. The data ใน the complex arrays ถูกเก็บใน an interleaved fashion (real, imag, real, imag, ...). The parameter numSamples แสดงจำนวนของ complex samples ที่ดำเนินการ. The complex arrays มีทั้งหมด 2*numSamples real values.

The underlying algorithm ถูกใช้:

for(n=0; n<numSamples; n++) {
    pDst[(2*n)+0] = pSrcA[(2*n)+0] * pSrcB[(2*n)+0] - pSrcA[(2*n)+1] * pSrcB[(2*n)+1];
    pDst[(2*n)+1] = pSrcA[(2*n)+0] * pSrcB[(2*n)+1] + pSrcA[(2*n)+1] * pSrcB[(2*n)+0];
}

มีฟังชั่นที่แยกกันสำหรับ floating-point, Q15 and Q31 data types.

tha



tha


tha


tha



Description

คูณ a complex vector ด้วย a real vector และสร้าง a complex result. The data ใน the complex arrays ถูกเก็บใน an interleaved fashion (real, imag, real, imag, ...). The parameter numSamples แสดงจำนวนของ complex samples ที่ดำเนินการd. The complex arrays มีทั้งหมด 2*numSamples real values ในขณะที่ the real array มีทั้งหมด numSamples real values..

The underlying algorithm ถูกใช้:

for(n=0; n<numSamples; n++) {
    pCmplxDst[(2*n)+0] = pSrcCmplx[(2*n)+0] * pSrcReal[n];
    pCmplxDst[(2*n)+1] = pSrcCmplx[(2*n)+1] * pSrcReal[n];
}

มีฟังชั่นที่แยกกันสำหรับ floating-point, Q15 and Q31 data types.

tha


tha