LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Absolute Maximum
Collaboration diagram for Absolute Maximum:

Functions

f32_t tpt_absmax_val_f32 (const f32_t *aInData, uint32_t aCount)
 Maximum absolute value of the double-precision floating-point vector. More...
 
f64_t tpt_absmax_val_f64 (const f64_t *aInData, uint32_t aCount)
 Maximum absolute value of the double-precision floating-point vector. More...
 
q7_t tpt_absmax_val_q7 (const q7_t *aInData, uint32_t aCount)
 Maximum absolute value of the q7 vector. More...
 
q15_t tpt_absmax_val_q15 (const q15_t *aInData, uint32_t aCount)
 Maximum absolute value of the q15 vector. More...
 
q31_t tpt_absmax_val_q31 (const q31_t *aInData, uint32_t aCount)
 Maximum absolute value of the q31 vector. More...
 

Detailed Description

Absolute Maximum functions compare the absolute values in a vector and return the maximum one along with its index.

TPT DSP library supports distinct absolute maximum functions for single-precision floating-point, Q31, Q15 and Q7 data types. These functions are introduced in the subsections below.

Function Documentation

◆ tpt_absmax_val_f32()

f32_t tpt_absmax_val_f32 ( const f32_t aInData,
uint32_t  aCount 
)

Maximum absolute value of the double-precision floating-point vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
f32 Absolute maximum value

◆ tpt_absmax_val_f64()

f64_t tpt_absmax_val_f64 ( const f64_t aInData,
uint32_t  aCount 
)

Maximum absolute value of the double-precision floating-point vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
f64 Absolute maximum value

◆ tpt_absmax_val_q15()

q15_t tpt_absmax_val_q15 ( const q15_t aInData,
uint32_t  aCount 
)

Maximum absolute value of the q15 vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
q15 Absolute maximum value

◆ tpt_absmax_val_q31()

q31_t tpt_absmax_val_q31 ( const q31_t aInData,
uint32_t  aCount 
)

Maximum absolute value of the q31 vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
q31 Absolute maximum value

◆ tpt_absmax_val_q7()

q7_t tpt_absmax_val_q7 ( const q7_t aInData,
uint32_t  aCount 
)

Maximum absolute value of the q7 vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
q7 Absolute maximum value