31.5.8 mips_vec_dotp32
Description
Computes the dot product of the Q31 vectors indata1 and indata2. The number of samples to be processed is given by the parameter N. The scale parameter specifies the amount of right shift applied to the final result.
Mathematically,
Include
dsplib_dsp.h
Prototype
int32
mips_vec_dotp32
(
int32 *indata1,
int32 *indata2,
int N,
int scale
);
Argument
indata1: First input array with 32-bit fixed point elements in Q31 format.
indata2: Second input array.
N: Number of samples.
scale: Scaling factor: divide the result by 2scale.
Return Value
Scaled result of the calculation in fractional Q31 format.
Remarks
- The pointers outdata and indata must be aligned on 4-byte boundaries.
- N must be larger than or equal to 4 and a multiple of 4.