LAPACK 3.12.0
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
c_dblas1.c
Go to the documentation of this file.
1/*
2 * c_dblas1.c
3 *
4 * The program is a C wrapper for dcblat1.
5 *
6 * Written by Keita Teranishi. 2/11/1998
7 *
8 */
9#include "cblas_test.h"
10#include "cblas.h"
11double F77_dasum(const CBLAS_INT *N, double *X, const CBLAS_INT *incX)
12{
13 return cblas_dasum(*N, X, *incX);
14}
15
16void F77_daxpy(const CBLAS_INT *N, const double *alpha, const double *X,
17 const CBLAS_INT *incX, double *Y, const CBLAS_INT *incY)
18{
19 cblas_daxpy(*N, *alpha, X, *incX, Y, *incY);
20 return;
21}
22
23void F77_dcopy(const CBLAS_INT *N, double *X, const CBLAS_INT *incX,
24 double *Y, const CBLAS_INT *incY)
25{
26 cblas_dcopy(*N, X, *incX, Y, *incY);
27 return;
28}
29
30double F77_ddot(const CBLAS_INT *N, const double *X, const CBLAS_INT *incX,
31 const double *Y, const CBLAS_INT *incY)
32{
33 return cblas_ddot(*N, X, *incX, Y, *incY);
34}
35
36double F77_dnrm2(const CBLAS_INT *N, const double *X, const CBLAS_INT *incX)
37{
38 return cblas_dnrm2(*N, X, *incX);
39}
40
41void F77_drotg( double *a, double *b, double *c, double *s)
42{
43 cblas_drotg(a,b,c,s);
44 return;
45}
46
47void 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)
49{
50
51 cblas_drot(*N,X,*incX,Y,*incY,*c,*s);
52 return;
53}
54
55void F77_dscal(const CBLAS_INT *N, const double *alpha, double *X,
56 const CBLAS_INT *incX)
57{
58 cblas_dscal(*N, *alpha, X, *incX);
59 return;
60}
61
62void F77_dswap( const CBLAS_INT *N, double *X, const CBLAS_INT *incX,
63 double *Y, const CBLAS_INT *incY)
64{
65 cblas_dswap(*N,X,*incX,Y,*incY);
66 return;
67}
68
69double F77_dzasum(const CBLAS_INT *N, void *X, const CBLAS_INT *incX)
70{
71 return cblas_dzasum(*N, X, *incX);
72}
73
74double F77_dznrm2(const CBLAS_INT *N, const void *X, const CBLAS_INT *incX)
75{
76 return cblas_dznrm2(*N, X, *incX);
77}
78
79CBLAS_INT F77_idamax(const CBLAS_INT *N, const double *X, const CBLAS_INT *incX)
80{
81 if (*N < 1 || *incX < 1) return(0);
82 return (cblas_idamax(*N, X, *incX)+1);
83}
double cblas_dnrm2(const CBLAS_INT N, const double *X, const CBLAS_INT incX)
Definition cblas_dnrm2.c:12
double cblas_dzasum(const CBLAS_INT N, const void *X, const CBLAS_INT incX)
double cblas_dasum(const CBLAS_INT N, const double *X, const CBLAS_INT incX)
Definition cblas_dasum.c:12
void cblas_daxpy(const CBLAS_INT N, const double alpha, const double *X, const CBLAS_INT incX, double *Y, const CBLAS_INT incY)
Definition cblas_daxpy.c:11
void cblas_dswap(const CBLAS_INT N, double *X, const CBLAS_INT incX, double *Y, const CBLAS_INT incY)
Definition cblas_dswap.c:11
void cblas_dscal(const CBLAS_INT N, const double alpha, double *X, const CBLAS_INT incX)
Definition cblas_dscal.c:11
double cblas_dznrm2(const CBLAS_INT N, const void *X, const CBLAS_INT incX)
CBLAS_INDEX cblas_idamax(const CBLAS_INT N, const double *X, const CBLAS_INT incX)
void cblas_dcopy(const CBLAS_INT N, const double *X, const CBLAS_INT incX, double *Y, const CBLAS_INT incY)
Definition cblas_dcopy.c:11
#define CBLAS_INT
Definition cblas.h:24
double cblas_ddot(const CBLAS_INT N, const double *X, const CBLAS_INT incX, const double *Y, const CBLAS_INT incY)
Definition cblas_ddot.c:12
void cblas_drotg(double *a, double *b, double *c, double *s)
Definition cblas_drotg.c:11
void cblas_drot(const CBLAS_INT N, double *X, const CBLAS_INT incX, double *Y, const CBLAS_INT incY, const double c, const double s)
Definition cblas_drot.c:11
#define F77_dscal(...)
Definition cblas_f77.h:254
#define F77_drotg(...)
Definition cblas_f77.h:245
#define F77_daxpy(...)
Definition cblas_f77.h:250
#define F77_dswap(...)
Definition cblas_f77.h:248
#define F77_drot(...)
Definition cblas_f77.h:244
#define F77_dcopy(...)
Definition cblas_f77.h:249
#define F77_dasum
Definition cblas_test.h:68
#define F77_dzasum
Definition cblas_test.h:72
#define F77_dznrm2
Definition cblas_test.h:71
#define F77_idamax
Definition cblas_test.h:43
#define F77_ddot
Definition cblas_test.h:53
#define F77_dnrm2
Definition cblas_test.h:67