Mercurial > hg > qm-dsp
diff ext/cblas/src/cblas_ddot.c @ 427:905e45637745
Add the CLAPACK and CBLAS/F2C-BLAS files we use
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 30 Sep 2016 15:51:22 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ext/cblas/src/cblas_ddot.c Fri Sep 30 15:51:22 2016 +0100 @@ -0,0 +1,17 @@ +#include "cblas.h" +#include "cblas_f77.h" + +extern double ddot_(const int *n, const double *dx, const int *incx, const double *dy, const int *incy); + +double cblas_ddot( const int N, const double *X, + const int incX, const double *Y, const int incY) +{ +#ifdef F77_INT + F77_INT F77_N=N, F77_incX=incX, F77_incY=incY; +#else + #define F77_N N + #define F77_incX incX + #define F77_incY incY +#endif + return ddot_( &F77_N, X, &F77_incX, Y, &F77_incY); +}