Accumulation functions
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f16 (const float16_t *pSrc, uint32_t blockSize, float16_t *pResult)
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f32 (const float32_t *pSrc, uint32_t blockSize, float32_t *pResult)
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult)
- group Accumulation
Calculates the accumulation of the input vector. Sum is defined as the addition of the elements in the vector. The underlying algorithm is used:
There are separate functions for floating-point, Q31, Q15, and Q7 data types.
Functions
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f16 (const float16_t *pSrc, uint32_t blockSize, float16_t *pResult)
accumulate value of a floating-point vector.
Sum value of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector.
blockSize – [in] number of samples in input vector.
pResult – [out] sum of values in input vector.
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f32 (const float32_t *pSrc, uint32_t blockSize, float32_t *pResult)
Accumulation value of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector.
blockSize – [in] number of samples in input vector.
pResult – [out] sum of values in input vector.
- RISCV_DSP_ATTRIBUTE void riscv_accumulate_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult)
Accumulation value of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector.
blockSize – [in] number of samples in input vector.
pResult – [out] sum of values in input vector.