Absolute Maximum
-
void riscv_absmax_f16(const float16_t *pSrc, uint32_t blockSize, float16_t *pResult, uint32_t *pIndex)
-
void riscv_absmax_f32(const float32_t *pSrc, uint32_t blockSize, float32_t *pResult, uint32_t *pIndex)
- RISCV_DSP_ATTRIBUTE void riscv_absmax_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult, uint32_t *pIndex)
-
void riscv_absmax_no_idx_f16(const float16_t *pSrc, uint32_t blockSize, float16_t *pResult)
-
void riscv_absmax_no_idx_f32(const float32_t *pSrc, uint32_t blockSize, float32_t *pResult)
- RISCV_DSP_ATTRIBUTE void riscv_absmax_no_idx_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult)
-
void riscv_absmax_no_idx_q15(const q15_t *pSrc, uint32_t blockSize, q15_t *pResult)
-
void riscv_absmax_no_idx_q31(const q31_t *pSrc, uint32_t blockSize, q31_t *pResult)
-
void riscv_absmax_no_idx_q7(const q7_t *pSrc, uint32_t blockSize, q7_t *pResult)
-
void riscv_absmax_q15(const q15_t *pSrc, uint32_t blockSize, q15_t *pResult, uint32_t *pIndex)
-
void riscv_absmax_q31(const q31_t *pSrc, uint32_t blockSize, q31_t *pResult, uint32_t *pIndex)
-
void riscv_absmax_q7(const q7_t *pSrc, uint32_t blockSize, q7_t *pResult, uint32_t *pIndex)
- group AbsMax
Computes the maximum value of absolute values of an array of data. The function returns both the maximum value and its position within the array. There are separate functions for floating-point, Q31, Q15, and Q7 data types.
Functions
-
void riscv_absmax_f16(const float16_t *pSrc, uint32_t blockSize, float16_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
-
void riscv_absmax_f32(const float32_t *pSrc, uint32_t blockSize, float32_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
- RISCV_DSP_ATTRIBUTE void riscv_absmax_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
-
void riscv_absmax_no_idx_f16(const float16_t *pSrc, uint32_t blockSize, float16_t *pResult)
Maximum value of absolute values of a floating-point vector.
Maximum value of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
-
void riscv_absmax_no_idx_f32(const float32_t *pSrc, uint32_t blockSize, float32_t *pResult)
Maximum value of absolute values of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
- RISCV_DSP_ATTRIBUTE void riscv_absmax_no_idx_f64 (const float64_t *pSrc, uint32_t blockSize, float64_t *pResult)
Maximum value of absolute values of a floating-point vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
-
void riscv_absmax_no_idx_q15(const q15_t *pSrc, uint32_t blockSize, q15_t *pResult)
Maximum value of absolute values of a Q15 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
-
void riscv_absmax_no_idx_q31(const q31_t *pSrc, uint32_t blockSize, q31_t *pResult)
Maximum value of absolute values of a Q31 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
-
void riscv_absmax_no_idx_q7(const q7_t *pSrc, uint32_t blockSize, q7_t *pResult)
Maximum value of absolute values of a Q7 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
-
void riscv_absmax_q15(const q15_t *pSrc, uint32_t blockSize, q15_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a Q15 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
-
void riscv_absmax_q31(const q31_t *pSrc, uint32_t blockSize, q31_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a Q31 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
-
void riscv_absmax_q7(const q7_t *pSrc, uint32_t blockSize, q7_t *pResult, uint32_t *pIndex)
Maximum value of absolute values of a Q7 vector.
- Parameters
pSrc – [in] points to the input vector
blockSize – [in] number of samples in input vector
pResult – [out] maximum value returned here
pIndex – [out] index of maximum value returned here
-
void riscv_absmax_f16(const float16_t *pSrc, uint32_t blockSize, float16_t *pResult, uint32_t *pIndex)