LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Log-Sum-Exp (LSE)
Collaboration diagram for Log-Sum-Exp (LSE):

Functions

f32_t tpt_lse_f32 (const f32_t *aInData, uint32_t aCount)
 Log-Sum-Exp of the floating-point vector. More...
 
f64_t tpt_lse_f64 (const f64_t *aInData, uint32_t aCount)
 Log-Sum-Exp of the floating-point vector. More...
 

Detailed Description

The LSE function computes the logarithm of the sum of the exponentials of a vector. The behavior can be defined as follows:

TPT DSP library only supports the LSE function for floating-point data.

Function Documentation

◆ tpt_lse_f32()

f32_t tpt_lse_f32 ( const f32_t aInData,
uint32_t  aCount 
)

Log-Sum-Exp of the floating-point vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
f32_t

◆ tpt_lse_f64()

f64_t tpt_lse_f64 ( const f64_t aInData,
uint32_t  aCount 
)

Log-Sum-Exp of the floating-point vector.

Parameters
[in]aInDatapointer of the input vector
[in]aCountnumber of elements in a vector
Returns
f64_t