vector_float.c File Reference

#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "floating_fudge.h"
#include <assert.h>
#include "spandsp/telephony.h"
#include "spandsp/vector_float.h"

Functions

void vec_copyf (float z[], const float x[], int n)
void vec_copy (double z[], const double x[], int n)
void vec_zerof (float z[], int n)
void vec_zero (double z[], int n)
void vec_setf (float z[], float x, int n)
void vec_set (double z[], double x, int n)
void vec_addf (float z[], const float x[], const float y[], int n)
void vec_add (double z[], const double x[], const double y[], int n)
void vec_addl (long double z[], const long double x[], const long double y[], int n)
void vec_scaled_addf (float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
void vec_scaled_add (double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
void vec_subf (float z[], const float x[], const float y[], int n)
void vec_sub (double z[], const double x[], const double y[], int n)
void vec_scaled_subf (float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
void vec_scaled_sub (double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
void vec_scalar_mulf (float z[], const float x[], float y, int n)
void vec_scalar_mul (double z[], const double x[], double y, int n)
void vec_mulf (float z[], const float x[], const float y[], int n)
void vec_mul (double z[], const double x[], const double y[], int n)
float vec_dot_prodf (const float x[], const float y[], int n)
 Find the dot product of two float vectors.
double vec_dot_prod (const double x[], const double y[], int n)
 Find the dot product of two double vectors.
float vec_circular_dot_prodf (const float x[], const float y[], int n, int pos)
 Find the dot product of two float vectors, where the first is a circular buffer with an offset for the starting position.
void vec_lmsf (const float x[], float y[], int n, float error)
void vec_circular_lmsf (const float x[], float y[], int n, int pos, float error)

Detailed Description


Function Documentation

float vec_circular_dot_prodf ( const float  x[],
const float  y[],
int  n,
int  pos 
)

Find the dot product of two float vectors, where the first is a circular buffer with an offset for the starting position.

Parameters:
x The first vector.
y The first vector.
n The number of elements in the vectors.
pos The starting position in the x vector.
Returns:
The dot product of the two vectors.

References vec_dot_prodf().

Referenced by v17_rx(), v27ter_rx(), and v29_rx().

double vec_dot_prod ( const double  x[],
const double  y[],
int  n 
)

Find the dot product of two double vectors.

Parameters:
x The first vector.
y The first vector.
n The number of elements in the vectors.
Returns:
The dot product of the two vectors.

float vec_dot_prodf ( const float  x[],
const float  y[],
int  n 
)

Find the dot product of two float vectors.

Parameters:
x The first vector.
y The first vector.
n The number of elements in the vectors.
Returns:
The dot product of the two vectors.

Referenced by vec_circular_dot_prodf().


Generated on Tue Oct 7 20:25:52 2008 for spandsp by  doxygen 1.5.6