4 * The program is a C wrapper for scblat1.
6 * Written by Keita Teranishi. 2/11/1998
10 #include "cblas_test.h"
12 float F77_sasum(blasint *N, float *X, blasint *incX)
14 return cblas_sasum(*N, X, *incX);
17 void F77_saxpy(blasint *N, const float *alpha, OPENBLAS_CONST float *X,
18 blasint *incX, float *Y, blasint *incY)
20 cblas_saxpy(*N, *alpha, X, *incX, Y, *incY);
24 float F77_scasum(blasint *N, float *X, blasint *incX)
26 return cblas_scasum(*N, X, *incX);
29 float F77_scnrm2(blasint *N, OPENBLAS_CONST float *X, blasint *incX)
31 return cblas_scnrm2(*N, X, *incX);
34 void F77_scopy(blasint *N, OPENBLAS_CONST float *X, blasint *incX,
35 float *Y, blasint *incY)
37 cblas_scopy(*N, X, *incX, Y, *incY);
41 float F77_sdot(blasint *N, OPENBLAS_CONST float *X, blasint *incX,
42 OPENBLAS_CONST float *Y, blasint *incY)
44 return cblas_sdot(*N, X, *incX, Y, *incY);
47 float F77_snrm2(blasint *N, OPENBLAS_CONST float *X, blasint *incX)
49 return cblas_snrm2(*N, X, *incX);
52 void F77_srotg( float *a, float *b, float *c, float *s)
58 void F77_srotm(blasint *N, float *X, blasint *incX, float *Y, blasint *incY,
61 cblas_srotm(*N, X, *incX, Y, *incY, param);
65 void F77_srot( blasint *N, float *X, blasint *incX, float *Y,
66 blasint *incY, const float *c, const float *s)
68 cblas_srot(*N,X,*incX,Y,*incY,*c,*s);
72 void F77_sscal(blasint *N, const float *alpha, float *X,
75 cblas_sscal(*N, *alpha, X, *incX);
79 void F77_sswap( blasint *N, float *X, blasint *incX,
80 float *Y, blasint *incY)
82 cblas_sswap(*N,X,*incX,Y,*incY);
86 int F77_isamax(blasint *N, OPENBLAS_CONST float *X, blasint *incX)
88 if (*N < 1 || *incX < 1) return(0);
89 return (cblas_isamax(*N, X, *incX)+1);