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

Functions

void tpt_max_f32 (f32_t *aResult, uint32_t *aIndex, const f32_t *aInData, uint32_t aCount)
 Maximum value of a floating-point vector. More...
 
void tpt_max_q15 (q15_t *aResult, uint32_t *aIndex, const q15_t *aInData, uint32_t aCount)
 Maximum value of a Q15 vector. More...
 
void tpt_max_q31 (q31_t *aResult, uint32_t *aIndex, const q31_t *aInData, uint32_t aCount)
 Maximum value of a Q31 vector. More...
 
void tpt_max_q7 (q7_t *aResult, uint32_t *aIndex, const q7_t *aInData, uint32_t aCount)
 Maximum value of a Q7 vector. More...
 

Detailed Description

Computes the maximum value 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.

Function Documentation

◆ tpt_max_f32()

void tpt_max_f32 ( f32_t aResult,
uint32_t *  aIndex,
const f32_t aInData,
uint32_t  aCount 
)

Maximum value of a floating-point vector.

Parameters
[out]aResultmaximum value returned here
[out]aIndexindex of maximum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_max_q15()

void tpt_max_q15 ( q15_t aResult,
uint32_t *  aIndex,
const q15_t aInData,
uint32_t  aCount 
)

Maximum value of a Q15 vector.

Parameters
[out]aResultmaximum value returned here
[out]aIndexindex of maximum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_max_q31()

void tpt_max_q31 ( q31_t aResult,
uint32_t *  aIndex,
const q31_t aInData,
uint32_t  aCount 
)

Maximum value of a Q31 vector.

Parameters
[out]aResultmaximum value returned here
[out]aIndexindex of maximum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none

◆ tpt_max_q7()

void tpt_max_q7 ( q7_t aResult,
uint32_t *  aIndex,
const q7_t aInData,
uint32_t  aCount 
)

Maximum value of a Q7 vector.

Parameters
[out]aResultmaximum value returned here
[out]aIndexindex of maximum value returned here
[in]aInDatapoints to the input vector
[in]aCountnumber of samples in input vector
Returns
none