Vectors
[Basic]


Detailed Description

All the vector management functions currently supported by the DSP library.

Addition

This function adds two vectors and store the result into another one.

Relative functions:


Addition with saturation

This function adds two vectors and store the result into another one. It takes care of the saturation.

Relative functions:


Addition with a real

This function adds each items of a vector with a real number and store the result into another vector.

Relative functions:


Subtraction

This function subtracts two vectors and store the result into another one.

Relative functions:


Subtraction with a real

This function subtracts each items of a vector with a real number and store the result into another vector.

Relative functions:


Multiplication with a real

This function multiplies one vector with a real number and store the result into another vector.

Relative functions:


Division with a real

This function divides one vector with a real number and store the result into another vector.

Relative functions:


Multiplication with an integer

This function multiplies one vector with an integer and store the result into another vector.

Relative functions:


Division with an integer

This function divides one vector with an integer and store the result into another vector.

Relative functions:


Dot multiplication

This function multiplies two vectors point per point and store the result into another one.

Relative functions:


Dot division

This function divides two vectors point per point and store the result into another one.

Relative functions:


Power

These functions compute vect2^real.
Note:
The output will be limit in the range of the fixed point format used.
Relative functions:


Minimum

This function retrieves the minimum of a vector.

Relative functions:


Maximum

This function retrieves the maximum of a vector.

Relative functions:


Negate

This function negate a vector.

Relative functions:


Zero padding

This function zero pads the tail of the vector.

Relative functions:


Copy

This function copy a vector into another vector.

Relative functions:


Partial Convolution

This function performs a linear partial convolution between two discrete sequences. It returns a signal of a length equals to (vect2_size - vect3_size + 1) elements.
Note:
The two discrete sequences have to be scaled to avoid overflowing values.
All the vectors have to be 32-bits aligned.
Relative functions:


Convolution

This function performs a linear convolution between two discrete sequences. It returns a signal of a length equals to (vect2_size + vect3_size - 1) elements.
Note:
The two discrete sequences have to be scaled to avoid overflowing values.
All the vectors have to be 32-bits aligned.
Warning:
The output buffer of the function has to have at least a length of N + 2*M – 2 elements because of internal computations, where N is the length of the largest input buffer and M, the length of the smallest input buffer.
Relative functions:


Complex addition

This function add two complex vectors and store the result into another one.

Relative functions:


Complex subtraction

This function sub two complex vectors and store the result into another one.

Relative functions:


Complex absolute

This function returns the absolute value of a complex vector.

Relative functions:


Complex conjugate

This function returns the conjugate complex vector of the input.

Relative functions:


Benchmark on the AT32UC targets



Functions

void dsp16_vect_add (dsp16_t *vect1, dsp16_t *vect2, dsp16_t *vect3, int size)
 16-bit fixed point version of the vector additon function.
void dsp16_vect_add_and_sat (dsp16_t *vect1, dsp16_t *vect2, dsp16_t *vect3, int size)
 16-bit fixed point version of the vector additon function.
void dsp16_vect_complex_abs (dsp16_t *vect1, dsp16_complex_t *vect2, int size)
 16-bit fixed point version of the complex vector absolute function.
void dsp16_vect_complex_add (dsp16_complex_t *vect1, dsp16_complex_t *vect2, dsp16_complex_t *vect3, int size)
 16-bit fixed point version of the complex vector additon function.
void dsp16_vect_complex_conj (dsp16_complex_t *vect1, dsp16_complex_t *vect2, int size)
 16-bit fixed point version of the complex vector conjugate function.
void dsp16_vect_complex_sub (dsp16_complex_t *vect1, dsp16_complex_t *vect2, dsp16_complex_t *vect3, int size)
 16-bit fixed point version of the complex vector subtraction function.
void dsp16_vect_conv (dsp16_t *vect1, dsp16_t *vect2, int vect2_size, dsp16_t *vect3, int vect3_size)
 16-bit fixed point version of the Convolution.
void dsp16_vect_convpart (dsp16_t *vect1, dsp16_t *vect2, int vect2_size, dsp16_t *vect3, int vect3_size)
 16-bit fixed point version of the Partial Convolution.
static void dsp16_vect_copy (dsp16_t *vect1, dsp16_t *vect2, int size)
 16-bit fixed point version of the copy function.
void dsp16_vect_dotdiv (dsp16_t *vect1, dsp16_t *vect2, dsp16_t *vect3, int size)
 16-bit fixed point version of the vector dot division function.
void dsp16_vect_dotmul (dsp16_t *vect1, dsp16_t *vect2, dsp16_t *vect3, int size)
 16-bit fixed point version of the vector dot multiplication function.
void dsp16_vect_intdiv (dsp16_t *vect1, dsp16_t *vect2, int size, int integer)
 16-bit fixed point version of the vector division with an integer.
void dsp16_vect_intmul (dsp16_t *vect1, dsp16_t *vect2, int size, int integer)
 16-bit fixed point version of the vector multiplication with an integer.
dsp16_t dsp16_vect_max (dsp16_t *vect1, int size)
 16-bit fixed point version of the vector maximum function.
dsp16_t dsp16_vect_min (dsp16_t *vect1, int size)
 16-bit fixed point version of the vector minimum function.
void dsp16_vect_neg (dsp16_t *vect1, dsp16_t *vect2, int size)
 16-bit fixed point version of the vector negate function.
void dsp16_vect_pow (dsp16_t *vect1, dsp16_t *vect2, int size, dsp16_t real)
 16-bit fixed point version of the power function.
void dsp16_vect_realadd (dsp16_t *vect1, dsp16_t *vect2, int size, dsp16_t real)
 16-bit fixed point version of the vector addition with a real number.
void dsp16_vect_realdiv (dsp16_t *vect1, dsp16_t *vect2, int size, dsp16_t real)
 16-bit fixed point version of the vector division with a real number.
void dsp16_vect_realmul (dsp16_t *vect1, dsp16_t *vect2, int size, dsp16_t real)
 16-bit fixed point version of the vector multiplication with a real number.
void dsp16_vect_realsub (dsp16_t *vect1, dsp16_t *vect2, int size, dsp16_t real)
 16-bit fixed point version of the vector subtraction with a real number.
void dsp16_vect_sub (dsp16_t *vect1, dsp16_t *vect2, dsp16_t *vect3, int size)
 16-bit fixed point version of the vector subtraction function.
static void dsp16_vect_zeropad (dsp16_t *vect1, int size, int num_zero)
 16-bit fixed point version of the zero padding function.
void dsp32_vect_add (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size)
 32-bit fixed point version of the vector additon function.
void dsp32_vect_add_and_sat (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size)
 32-bit fixed point version of the vector additon function.
void dsp32_vect_complex_abs (dsp32_t *vect1, dsp32_complex_t *vect2, int size)
 32-bit fixed point version of the complex vector absolute function.
void dsp32_vect_complex_add (dsp32_complex_t *vect1, dsp32_complex_t *vect2, dsp32_complex_t *vect3, int size)
 32-bit fixed point version of the complex vector additon function.
void dsp32_vect_complex_sub (dsp32_complex_t *vect1, dsp32_complex_t *vect2, dsp32_complex_t *vect3, int size)
 32-bit fixed point version of the complex vector subtraction function.
void dsp32_vect_conv (dsp32_t *vect1, dsp32_t *vect2, int vect2_size, dsp32_t *vect3, int vect3_size)
 32-bit fixed point version of the Convolution.
void dsp32_vect_convpart (dsp32_t *vect1, dsp32_t *vect2, int vect2_size, dsp32_t *vect3, int vect3_size)
 32-bit fixed point version of the Partial Convolution.
static void dsp32_vect_copy (dsp32_t *vect1, dsp32_t *vect2, int size)
 32-bit fixed point version of the copy function.
void dsp32_vect_dotdiv (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size)
 32-bit fixed point version of the vector dot division function.
void dsp32_vect_dotmul (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size)
 32-bit fixed point version of the vector dot multiplication function.
void dsp32_vect_intdiv (dsp32_t *vect1, dsp32_t *vect2, int size, int integer)
 32-bit fixed point version of the vector division with an integer.
void dsp32_vect_intmul (dsp32_t *vect1, dsp32_t *vect2, int size, int integer)
 32-bit fixed point version of the vector multiplication with an integer.
dsp32_t dsp32_vect_max (dsp32_t *vect1, int size)
 32-bit fixed point version of the vector maximum function.
dsp32_t dsp32_vect_min (dsp32_t *vect1, int size)
 32-bit fixed point version of the vector minimum function.
void dsp32_vect_neg (dsp32_t *vect1, dsp32_t *vect2, int size)
 32-bit fixed point version of the vector negate function.
void dsp32_vect_pow (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the power function.
void dsp32_vect_realadd (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the vector addition with a real number.
void dsp32_vect_realdiv (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the vector division with a real number.
void dsp32_vect_realmul (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the vector multiplication with a real number.
void dsp32_vect_realsub (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the vector subtraction with a real number.
void dsp32_vect_sub (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size)
 32-bit fixed point version of the vector subtraction function.
static void dsp32_vect_zeropad (dsp32_t *vect1, int size, int num_zero)
 32-bit fixed point version of the zero padding function.


Function Documentation

void dsp16_vect_add ( dsp16_t vect1,
dsp16_t vect2,
dsp16_t vect3,
int  size 
)

16-bit fixed point version of the vector additon function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the addition.
vect2 A pointer on the 16-bit real vector that will be added with the other input vector (vect3).
vect3 A pointer on the 16-bit real vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_add_and_sat ( dsp16_t vect1,
dsp16_t vect2,
dsp16_t vect3,
int  size 
)

16-bit fixed point version of the vector additon function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the addition.
vect2 A pointer on the 16-bit real vector that will be added with the other input vector (vect3).
vect3 A pointer on the 16-bit real vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_complex_abs ( dsp16_t vect1,
dsp16_complex_t vect2,
int  size 
)

16-bit fixed point version of the complex vector absolute function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieve the result.
vect2 A pointer on the 16-bit complex vector that will be computed.
size The size of the input buffer.

void dsp16_vect_complex_add ( dsp16_complex_t vect1,
dsp16_complex_t vect2,
dsp16_complex_t vect3,
int  size 
)

16-bit fixed point version of the complex vector additon function.

Parameters:
vect1 A pointer on the 16-bit complex vector that will recieved the result of the addition.
vect2 A pointer on the 16-bit complex vector that will be added with the other input vector (vect3).
vect3 A pointer on the 16-bit complex vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_complex_conj ( dsp16_complex_t vect1,
dsp16_complex_t vect2,
int  size 
)

16-bit fixed point version of the complex vector conjugate function.

Parameters:
vect1 A pointer on the 16-bit complex vector that will recieve the result.
vect2 A pointer on the 16-bit complex vector that will be computed.
size The size of the input buffer.

void dsp16_vect_complex_sub ( dsp16_complex_t vect1,
dsp16_complex_t vect2,
dsp16_complex_t vect3,
int  size 
)

16-bit fixed point version of the complex vector subtraction function.

Parameters:
vect1 A pointer on the 16-bit complex vector that will recieved the result of the subtraction.
vect2 A pointer on the 16-bit complex vector that will be subtracted with the other input vector (vect3).
vect3 A pointer on the 16-bit complex vector that will be subtracted with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_conv ( dsp16_t vect1,
dsp16_t vect2,
int  vect2_size,
dsp16_t vect3,
int  vect3_size 
)

16-bit fixed point version of the Convolution.

Parameters:
vect1 A pointer on a 16-bits fixed-point vector corresponding to the output buffer.
vect2 A pointer on a 16-bits fixed-point vector of vect2_size elements corresponding to the first input buffer.
vect2_size The length of the first input buffer (must be greater or equals to 8).
vect3 A pointer on a 16-bits fixed-point vector of vect3_size elements corresponding to the second input buffer.
vect3_size The length of the second input buffer (must be greater or equals to 8)
Warning:
Due to its implementation, for the avr32-uc3 optimized version of the FIR, the output buffer (vect1) have to have a length of 4*n elements to avoid overflows.
Note:
You need the "Partial Convolution" module
the "Copy" module
the "Zero Padding" module

void dsp16_vect_convpart ( dsp16_t vect1,
dsp16_t vect2,
int  vect2_size,
dsp16_t vect3,
int  vect3_size 
)

16-bit fixed point version of the Partial Convolution.

Parameters:
vect1 A pointer on a 16-bits fixed-point vector corresponding to the output buffer.
vect2 A pointer on a 16-bits fixed-point vector of vect2_size elements corresponding to the first input buffer.
vect2_size The length of the first input buffer (must be greater or equals to 4).
vect3 A pointer on a 16-bits fixed-point vector of vect3_size elements corresponding to the second input buffer.
vect3_size The length of the second input buffer (must be greater or equals to 8)
Warning:
Due to its implementation, for the avr32-uc3 optimized version of the FIR, the output buffer (vect1) have to have a length of 4*n elements to avoid overflows.

Referenced by dsp16_filt_fir().

static void dsp16_vect_copy ( dsp16_t vect1,
dsp16_t vect2,
int  size 
) [inline, static]

16-bit fixed point version of the copy function.

Parameters:
vect1 A pointer on the 16 bits real vector that will recieve data.
vect2 A pointer on the 16 bits real vector to be copied.
size The size of those vectors.

Definition at line 583 of file dsp_vectors.h.

00583 { memcpy(vect1, vect2, size*sizeof(dsp16_t)); };

void dsp16_vect_dotdiv ( dsp16_t vect1,
dsp16_t vect2,
dsp16_t vect3,
int  size 
)

16-bit fixed point version of the vector dot division function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the dot division.
vect2 A pointer on the 16-bit real vector that will be divided with the other input vector (vect3).
vect3 A pointer on the 16-bit real vector that will be divided with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_dotmul ( dsp16_t vect1,
dsp16_t vect2,
dsp16_t vect3,
int  size 
)

16-bit fixed point version of the vector dot multiplication function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the dot multiplication.
vect2 A pointer on the 16-bit real vector that will be multiplied with the other input vector (vect3).
vect3 A pointer on the 16-bit real vector that will be multiplied with the other input vector (vect2).
size The size of the input buffers.

void dsp16_vect_intdiv ( dsp16_t vect1,
dsp16_t vect2,
int  size,
int  integer 
)

16-bit fixed point version of the vector division with an integer.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be divided with the integer.
size The size of the buffers.
integer The integer to be divided with the vector (vect2).

void dsp16_vect_intmul ( dsp16_t vect1,
dsp16_t vect2,
int  size,
int  integer 
)

16-bit fixed point version of the vector multiplication with an integer.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be multiplied with the integer.
size The size of the buffers.
integer The integer to be multiplied with the vector (vect2).

dsp16_t dsp16_vect_max ( dsp16_t vect1,
int  size 
)

16-bit fixed point version of the vector maximum function.

Parameters:
vect1 A pointer on the 16-bit real vector that is used to find its maximum.
size The size of the input buffer.
Returns:
The maximum of the vector (vect1).

dsp16_t dsp16_vect_min ( dsp16_t vect1,
int  size 
)

16-bit fixed point version of the vector minimum function.

Parameters:
vect1 A pointer on the 16-bit real vector that is used to find its minimum.
size The size of the input buffer.
Returns:
The minimum of the vector (vect1).

void dsp16_vect_neg ( dsp16_t vect1,
dsp16_t vect2,
int  size 
)

16-bit fixed point version of the vector negate function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieve the result.
vect2 A pointer on the 16-bit real vector that will be negate.
size The size of the input buffer.

void dsp16_vect_pow ( dsp16_t vect1,
dsp16_t vect2,
int  size,
dsp16_t  real 
)

16-bit fixed point version of the power function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be raised to the power 'real'.
size The size of the buffers.
real The real number used to raised to the power 'vect2'.
Note:
If the vector contains negative numbers, the result for these items will be DSP_Q_MIN.

void dsp16_vect_realadd ( dsp16_t vect1,
dsp16_t vect2,
int  size,
dsp16_t  real 
)

16-bit fixed point version of the vector addition with a real number.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be added with the real number.
size The size of the buffers.
real The real number to be added with the vector (vect2).

void dsp16_vect_realdiv ( dsp16_t vect1,
dsp16_t vect2,
int  size,
dsp16_t  real 
)

16-bit fixed point version of the vector division with a real number.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be divided with the real number.
size The size of the buffers.
real The real number to be divided with the vector (vect2).

void dsp16_vect_realmul ( dsp16_t vect1,
dsp16_t vect2,
int  size,
dsp16_t  real 
)

16-bit fixed point version of the vector multiplication with a real number.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be multiplied with the real number.
size The size of the buffers.
real The real number to be multiplied with the vector (vect2).

void dsp16_vect_realsub ( dsp16_t vect1,
dsp16_t vect2,
int  size,
dsp16_t  real 
)

16-bit fixed point version of the vector subtraction with a real number.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 16-bit real vector that will be subtracted with the real number.
size The size of the buffers.
real The real number to be subtracted with the vector (vect2).

void dsp16_vect_sub ( dsp16_t vect1,
dsp16_t vect2,
dsp16_t vect3,
int  size 
)

16-bit fixed point version of the vector subtraction function.

Parameters:
vect1 A pointer on the 16-bit real vector that will recieved the result of the subtraction.
vect2 A pointer on the 16-bit real vector that will be subtracted with the other input vector (vect3).
vect3 A pointer on the 16-bit real vector that will be subtracted with the other input vector (vect2).
size The size of the input buffers.

static void dsp16_vect_zeropad ( dsp16_t vect1,
int  size,
int  num_zero 
) [inline, static]

16-bit fixed point version of the zero padding function.

Parameters:
vect1 A pointer on the 16 bits real vector that has to be padded with zeros.
size The size of this vector.
num_zero The number of zeros to pad at the end of the vector.

Definition at line 555 of file dsp_vectors.h.

00555 { memset(vect1 + (size - num_zero)*sizeof(dsp16_t), 0, num_zero*sizeof(dsp16_t)); };

void dsp32_vect_add ( dsp32_t vect1,
dsp32_t vect2,
dsp32_t vect3,
int  size 
)

32-bit fixed point version of the vector additon function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the addition.
vect2 A pointer on the 32-bit real vector that will be added with the other input vector (vect3).
vect3 A pointer on the 32-bit real vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_add_and_sat ( dsp32_t vect1,
dsp32_t vect2,
dsp32_t vect3,
int  size 
)

32-bit fixed point version of the vector additon function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the addition.
vect2 A pointer on the 32-bit real vector that will be added with the other input vector (vect3).
vect3 A pointer on the 32-bit real vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_complex_abs ( dsp32_t vect1,
dsp32_complex_t vect2,
int  size 
)

32-bit fixed point version of the complex vector absolute function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieve the result.
vect2 A pointer on the 32-bit complex vector that will be computed.
size The size of the input buffer.

void dsp32_vect_complex_add ( dsp32_complex_t vect1,
dsp32_complex_t vect2,
dsp32_complex_t vect3,
int  size 
)

32-bit fixed point version of the complex vector additon function.

Parameters:
vect1 A pointer on the 32-bit complex vector that will recieved the result of the addition.
vect2 A pointer on the 32-bit complex vector that will be added with the other input vector (vect3).
vect3 A pointer on the 32-bit complex vector that will be added with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_complex_sub ( dsp32_complex_t vect1,
dsp32_complex_t vect2,
dsp32_complex_t vect3,
int  size 
)

32-bit fixed point version of the complex vector subtraction function.

Parameters:
vect1 A pointer on the 32-bit complex vector that will recieved the result of the subtraction.
vect2 A pointer on the 32-bit complex vector that will be subtracted with the other input vector (vect3).
vect3 A pointer on the 32-bit complex vector that will be subtracted with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_conv ( dsp32_t vect1,
dsp32_t vect2,
int  vect2_size,
dsp32_t vect3,
int  vect3_size 
)

32-bit fixed point version of the Convolution.

Parameters:
vect1 A pointer on a 32-bits fixed-point vector corresponding to the output buffer.
vect2 A pointer on a 32-bits fixed-point vector of vect2_size elements corresponding to the first input buffer.
vect2_size The length of the first input buffer (must be greater or equals to 8).
vect3 A pointer on a 32-bits fixed-point vector of vect3_size elements corresponding to the second input buffer.
vect3_size The length of the second input buffer (must be greater or equals to 8)
Note:
You need the "Partial Convolution" module
the "Copy" module
the "Zero Padding" module

void dsp32_vect_convpart ( dsp32_t vect1,
dsp32_t vect2,
int  vect2_size,
dsp32_t vect3,
int  vect3_size 
)

32-bit fixed point version of the Partial Convolution.

Parameters:
vect1 A pointer on a 32-bits fixed-point vector corresponding to the output buffer.
vect2 A pointer on a 32-bits fixed-point vector of vect2_size elements corresponding to the first input buffer.
vect2_size The length of the first input buffer (must be greater or equals to 4).
vect3 A pointer on a 32-bits fixed-point vector of vect3_size elements corresponding to the second input buffer.
vect3_size The length of the second input buffer (must be greater or equals to 8)

Referenced by dsp32_filt_fir().

static void dsp32_vect_copy ( dsp32_t vect1,
dsp32_t vect2,
int  size 
) [inline, static]

32-bit fixed point version of the copy function.

Parameters:
vect1 A pointer on the 32 bits real vector that will recieve data.
vect2 A pointer on the 32 bits real vector to be copied.
size The size of those vectors.

Definition at line 590 of file dsp_vectors.h.

00590 { memcpy(vect1, vect2, size*sizeof(dsp32_t)); };

void dsp32_vect_dotdiv ( dsp32_t vect1,
dsp32_t vect2,
dsp32_t vect3,
int  size 
)

32-bit fixed point version of the vector dot division function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the dot division.
vect2 A pointer on the 32-bit real vector that will be divided with the other input vector (vect3).
vect3 A pointer on the 32-bit real vector that will be divided with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_dotmul ( dsp32_t vect1,
dsp32_t vect2,
dsp32_t vect3,
int  size 
)

32-bit fixed point version of the vector dot multiplication function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the dot multiplication.
vect2 A pointer on the 32-bit real vector that will be multiplied with the other input vector (vect3).
vect3 A pointer on the 32-bit real vector that will be multiplied with the other input vector (vect2).
size The size of the input buffers.

void dsp32_vect_intdiv ( dsp32_t vect1,
dsp32_t vect2,
int  size,
int  integer 
)

32-bit fixed point version of the vector division with an integer.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be divided with the integer.
size The size of the buffers.
integer The integer to be divided with the vector (vect2).

void dsp32_vect_intmul ( dsp32_t vect1,
dsp32_t vect2,
int  size,
int  integer 
)

32-bit fixed point version of the vector multiplication with an integer.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be multiplied with the integer.
size The size of the buffers.
integer The integer to be multiplied with the vector (vect2).

dsp32_t dsp32_vect_max ( dsp32_t vect1,
int  size 
)

32-bit fixed point version of the vector maximum function.

Parameters:
vect1 A pointer on the 32-bit real vector that is used to find its maximum.
size The size of the input buffer.
Returns:
The maximum of the vector (vect1).

dsp32_t dsp32_vect_min ( dsp32_t vect1,
int  size 
)

32-bit fixed point version of the vector minimum function.

Parameters:
vect1 A pointer on the 32-bit real vector that is used to find its minimum.
size The size of the input buffer.
Returns:
The minimum of the vector (vect1).

void dsp32_vect_neg ( dsp32_t vect1,
dsp32_t vect2,
int  size 
)

32-bit fixed point version of the vector negate function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieve the result.
vect2 A pointer on the 32-bit real vector that will be negate.
size The size of the input buffer.

void dsp32_vect_pow ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)

32-bit fixed point version of the power function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be raised to the power 'real'.
size The size of the buffers.
real The real number used to raised to the power 'vect2'.
Note:
If the vector contains negative numbers, the result for these items will be DSP_Q_MIN.

void dsp32_vect_realadd ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)

32-bit fixed point version of the vector addition with a real number.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be added with the real number.
size The size of the buffers.
real The real number to be added with the vector (vect2).

void dsp32_vect_realdiv ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)

32-bit fixed point version of the vector division with a real number.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be divided with the real number.
size The size of the buffers.
real The real number to be divided with the vector (vect2).

void dsp32_vect_realmul ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)

32-bit fixed point version of the vector multiplication with a real number.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be multiplied with the real number.
size The size of the buffers.
real The real number to be multiplied with the vector (vect2).

void dsp32_vect_realsub ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)

32-bit fixed point version of the vector subtraction with a real number.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the operation.
vect2 A pointer on the 32-bit real vector that will be subtracted with the real number.
size The size of the buffers.
real The real number to be subtracted with the vector (vect2).

void dsp32_vect_sub ( dsp32_t vect1,
dsp32_t vect2,
dsp32_t vect3,
int  size 
)

32-bit fixed point version of the vector subtraction function.

Parameters:
vect1 A pointer on the 32-bit real vector that will recieved the result of the subtraction.
vect2 A pointer on the 32-bit real vector that will be subtracted with the other input vector (vect3).
vect3 A pointer on the 32-bit real vector that will be subtracted with the other input vector (vect2).
size The size of the input buffers.

static void dsp32_vect_zeropad ( dsp32_t vect1,
int  size,
int  num_zero 
) [inline, static]

32-bit fixed point version of the zero padding function.

Parameters:
vect1 A pointer on the 32 bits real vector that has to be padded with zeros.
size The size of this vector.
num_zero The number of zeros to pad at the end of the vector.

Definition at line 562 of file dsp_vectors.h.

00562 { memset(vect1 + (size - num_zero)*sizeof(dsp32_t), 0, num_zero*sizeof(dsp32_t)); };


Generated on Fri Feb 19 02:28:01 2010 for AVR32 - Fixed point DSP Library by  doxygen 1.5.5