LIBML
Version 3.2.4
LIBML DSP Software Library
|
Functions | |
void | tpt_power_f32 (f32_t *aResult, const f32_t *aInData, uint32_t aCount) |
Sum of the squares of the elements of a floating-point vector. More... | |
void | tpt_power_f64 (f64_t *aResult, const f64_t *aInData, uint32_t aCount) |
Sum of the squares of the elements of a floating-point vector. More... | |
void | tpt_power_q15 (q33_30_t *aResult, const q15_t *aInData, uint32_t aCount) |
Sum of the squares of the elements of a Q15 vector. More... | |
void | tpt_power_q31 (q15_48_t *aResult, const q31_t *aInData, uint32_t aCount) |
Sum of the squares of the elements of a Q31 vector. More... | |
void | tpt_power_q7 (q17_14_t *aResult, const q7_t *aInData, uint32_t aCount) |
Sum of the squares of the elements of a Q7 vector. More... | |
Calculates the sum of the squares of the elements in the input vector. The underlying algorithm is used:
aResult = aInData[0] * aInData[0] + aInData[1] * aInData[1] + aInData[2] * aInData[2] + ... + aInData[aCount-1] * aInData[aCount-1];
There are separate functions for floating point, Q31, Q15, and Q7 data types.
Sum of the squares of the elements of a floating-point vector.
[out] | aResult | sum of the squares value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Sum of the squares of the elements of a floating-point vector.
[out] | aResult | sum of the squares value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Sum of the squares of the elements of a Q15 vector.
[out] | aResult | sum of the squares value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Sum of the squares of the elements of a Q31 vector.
[out] | aResult | sum of the squares value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |
Sum of the squares of the elements of a Q7 vector.
[out] | aResult | sum of the squares value returned here |
[in] | aInData | points to the input vector |
[in] | aCount | number of samples in input vector |