LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Collaboration diagram for Vector Fill:

Functions

void tpt_fill_f32 (f32_t *aOutData, f32_t aValue, uint32_t aCount)
 Fills a constant value into a floating-point vector. More...
 
void tpt_fill_f64 (f64_t *aOutData, f64_t aValue, uint32_t aCount)
 Fills a constant value into a floating-point vector. More...
 
void tpt_fill_q15 (q15_t *aOutData, q15_t aValue, uint32_t aCount)
 Fills a constant value into a Q15 vector. More...
 
void tpt_fill_q31 (q31_t *aOutData, q31_t aValue, uint32_t aCount)
 Fills a constant value into a Q31 vector. More...
 
void tpt_fill_q63 (q63_t *aOutData, q63_t aValue, uint32_t aCount)
 Fills a constant value into a Q63 vector. More...
 
void tpt_fill_q7 (q7_t *aOutData, q7_t aValue, uint32_t aCount)
 Fills a constant value into a Q7 vector. More...
 

Detailed Description

Fills the destination vector with a constant value.

    aOutData[n] = value;   0 <= n < aCount.
  

There are separate functions for floating point, Q31, Q15, and Q7 data types.

Function Documentation

◆ tpt_fill_f32()

void tpt_fill_f32 ( f32_t aOutData,
f32_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a floating-point vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none

◆ tpt_fill_f64()

void tpt_fill_f64 ( f64_t aOutData,
f64_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a floating-point vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none

◆ tpt_fill_q15()

void tpt_fill_q15 ( q15_t aOutData,
q15_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a Q15 vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none

◆ tpt_fill_q31()

void tpt_fill_q31 ( q31_t aOutData,
q31_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a Q31 vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none

◆ tpt_fill_q63()

void tpt_fill_q63 ( q63_t aOutData,
q63_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a Q63 vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none

◆ tpt_fill_q7()

void tpt_fill_q7 ( q7_t aOutData,
q7_t  aValue,
uint32_t  aCount 
)

Fills a constant value into a Q7 vector.

Parameters
[out]aOutDatapoints to output vector
[in]aValueinput value to be filled
[in]aCountnumber of samples in each vector
Returns
none