Main Page | Data Structures | File List | Data Fields | Globals

specialmath.h

00001 #ifndef __SPECIALMATH_H
00002 #define __SPECIALMATH_H
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif /* __cplusplus */
00007 
00008 double sqDist(const double *a,const double *b,int n);
00009 void calcSqDistances(double *d,const double *X,const double *x,int q,int N);
00010 
00011 void scaleVector(double alpha,double *v,int n);
00012 double vectorSum1(const double *V,int n);
00013 double vectorSum2(const double *V,int n);
00014 
00015 void storeAlphaUtoV(double alpha,const double *U,double *V,int n);
00016 void addAlphaUtoV(double alpha,const double *U,double *V,int n);
00017 double dotProduct(const double *U,const double *V,int n);
00018 
00019 void addSparseToFull(const int *table,const double *s,double *f,int n);
00020 
00021 /* y=Ax or y=A'x : A is m x n matrix */
00022 void MatrixVector(double *y,const double *A,const double *x,int m,int n);
00023 void MatrixTVector(double *y,const double *A,const double *x,int m,int n);
00024 
00025 #ifdef __cplusplus
00026 }
00027 #endif /* __cplusplus */
00028 
00029 #endif

Generated on Fri Aug 25 18:00:11 2006 for UKR Toolbox by  doxygen 1.4.3