9 #include "cblas_test.h" 11 double F77_dasum(
const CBLAS_INT *N,
double *X,
const CBLAS_INT *incX)
13 return cblas_dasum(*N, X, *incX);
16 void F77_daxpy(
const CBLAS_INT *N,
const double *alpha,
const double *X,
17 const CBLAS_INT *incX,
double *Y,
const CBLAS_INT *incY)
19 cblas_daxpy(*N, *alpha, X, *incX, Y, *incY);
23 void F77_dcopy(
const CBLAS_INT *N,
double *X,
const CBLAS_INT *incX,
24 double *Y,
const CBLAS_INT *incY)
26 cblas_dcopy(*N, X, *incX, Y, *incY);
30 double F77_ddot(
const CBLAS_INT *N,
const double *X,
const CBLAS_INT *incX,
31 const double *Y,
const CBLAS_INT *incY)
33 return cblas_ddot(*N, X, *incX, Y, *incY);
36 double F77_dnrm2(
const CBLAS_INT *N,
const double *X,
const CBLAS_INT *incX)
38 return cblas_dnrm2(*N, X, *incX);
41 void F77_drotg(
double *a,
double *b,
double *c,
double *s)
47 void F77_drot(
const CBLAS_INT *N,
double *X,
const CBLAS_INT *incX,
double *Y,
48 const CBLAS_INT *incY,
const double *c,
const double *s)
51 cblas_drot(*N,X,*incX,Y,*incY,*c,*s);
55 void F77_dscal(
const CBLAS_INT *N,
const double *alpha,
double *X,
56 const CBLAS_INT *incX)
58 cblas_dscal(*N, *alpha, X, *incX);
62 void F77_dswap(
const CBLAS_INT *N,
double *X,
const CBLAS_INT *incX,
63 double *Y,
const CBLAS_INT *incY)
65 cblas_dswap(*N,X,*incX,Y,*incY);
69 double F77_dzasum(
const CBLAS_INT *N,
void *X,
const CBLAS_INT *incX)
71 return cblas_dzasum(*N, X, *incX);
74 double F77_dznrm2(
const CBLAS_INT *N,
const void *X,
const CBLAS_INT *incX)
76 return cblas_dznrm2(*N, X, *incX);
79 CBLAS_INT F77_idamax(
const CBLAS_INT *N,
const double *X,
const CBLAS_INT *incX)
81 if (*N < 1 || *incX < 1)
return(0);
82 return (cblas_idamax(*N, X, *incX)+1);