36 double F77DECLARE(DASUM)(
const integer *n,
const double*
const dx,
const integer *incx);
39 void F77DECLARE(DAXPY)(
const integer *n,
const double *
const da,
const double *
const dx,
40 const integer *incx,
double *
const dy,
const integer *incy);
42 void F77DECLARE(DCOPY)(
const integer *n,
43 const double *
const dx,
const integer *incx,
44 double *
const dy,
const integer *incy);
47 double F77DECLARE(DDOT)(
const integer *n,
const double *
const dx,
const integer *incx,
48 const double *
const dy,
const integer *incy);
50 double F77DECLARE(DNRM2)(
const integer *n,
const double *
const dx,
const integer *incx);
52 void F77DECLARE(DROT)(
const integer *n,
double *
const dx,
const integer *incx,
double *
const dy,
53 const integer *incy,
const double *
const c,
const double *
const s);
55 void F77DECLARE(DROTG)(
double *
const da,
double *
const db,
double *
const c,
double *
const s);
57 void F77DECLARE(DSCAL)(
const integer *n,
double *
const da,
double *
const dx,
const integer *incx);
59 void F77DECLARE(DSWAP)(
const integer *n,
double *
const dx,
const integer *incx,
double *
const dy,
62 integer F77DECLARE(IDAMAX)(
const integer *n,
const double *
const dx,
const integer *incx);
64 float F77DECLARE(SDOT)(
const integer *n,
const float *cx,
65 const integer *incx,
const float *cy,
const integer *incy);
67 void F77DECLARE(SAXPY)(
const integer *n,
const float *da,
const float *dx,
68 const integer *incx,
float *dy,
const integer *incy);
70 void F77DECLARE(SCOPY)(
const integer *n,
float *dx,
const integer *incx,
71 float *dy,
const integer *incy);
73 float F77DECLARE(SASUM)(
const integer *n,
const float *dx,
const integer *incx);
75 float F77DECLARE(SNRM2)(
const integer *n,
const float *dx,
const integer *incx);
77 void F77DECLARE(SSCAL)(
const integer *n,
const double *
const da,
float *dx,
80 integer F77DECLARE(ISAMAX)(
const integer *n,
const float *
const dx,
const integer *incx);
82 void F77DECLARE(SSWAP)(
const integer *n,
float *dx,
const integer *incx,
83 float *dy, integer *incy);
85 void F77DECLARE(SROT)(
const integer *n,
90 const double *
const c,
91 const double *
const s);
93 void F77DECLARE(SROTG)(
double *
const da,
99 double F77DECLARE(dasum)(
const integer *n,
const double*
const dx,
const integer *incx);
102 void F77DECLARE(daxpy)(
const integer *n,
const double *
const da,
const double *
const dx,
103 const integer *incx,
double *
const dy,
const integer *incy);
105 void F77DECLARE(dcopy)(
const integer *n,
106 const double *
const dx,
const integer *incx,
107 double *
const dy,
const integer *incy);
110 double F77DECLARE(ddot)(
const integer *n,
const double *
const dx,
const integer *incx,
111 const double *
const dy,
const integer *incy);
113 double F77DECLARE(dnrm2)(
const integer *n,
const double *
const dx,
const integer *incx);
115 void F77DECLARE(drot)(
const integer *n,
double *
const dx,
const integer *incx,
double *
const dy,
116 const integer *incy,
const double *
const c,
const double *
const s);
118 void F77DECLARE(drotg)(
double *
const da,
double *
const db,
double *
const c,
double *
const s);
120 void F77DECLARE(dscal)(
const integer *n,
double *
const da,
double *
const dx,
const integer *incx);
122 void F77DECLARE(dswap)(
const integer *n,
double *
const dx,
const integer *incx,
double *
const dy,
123 const integer *incy);
125 integer F77DECLARE(idamax)(
const integer *n,
const double *
const dx,
const integer *incx);
127 float F77DECLARE(sdot)(
const integer *n,
const float *cx,
128 const integer *incx,
const float *cy,
const integer *incy);
130 void F77DECLARE(saxpy)(
const integer *n,
const float *da,
const float *dx,
131 const integer *incx,
float *dy,
const integer *incy);
133 void F77DECLARE(scopy)(
const integer *n,
float *dx,
const integer *incx,
134 float *dy,
const integer *incy);
136 float F77DECLARE(sasum)(
const integer *n,
const float *dx,
const integer *incx);
138 float F77DECLARE(snrm2)(
const integer *n,
const float *dx,
const integer *incx);
140 void F77DECLARE(sscal)(
const integer *n,
const float *da,
float *dx,
141 const integer *incx);
143 integer F77DECLARE(isamax)(
const integer *n,
const float *
const dx,
const integer *incx);
145 void F77DECLARE(sswap)(
const integer *n,
float *dx,
const integer *incx,
146 float *dy, integer *incy);
148 void F77DECLARE(srot)(
const integer *n,
153 const double *
const c,
154 const double *
const s);
156 void F77DECLARE(srotg)(
double *
const da,
168inline double F77NAME(DASUM)(
const integer *n,
169 const double*
const dx,
172 return F77NAME(dasum)(n ,dx ,incx);
180inline void F77NAME(DAXPY)(
const integer *n,
181 const double *
const da,
182 const double *
const dx,
187 F77NAME(daxpy)(n ,da, dx ,incx, dy, incy);
194inline void F77NAME(DCOPY)(
const integer *n,
195 const double *
const dx,
200 F77NAME(dcopy)(n , dx , incx, dy, incy);
208inline double F77NAME(DDOT)(
const integer *n,
209 const double *
const dx,
211 const double *
const dy,
214 return F77NAME(ddot)(n , dx , incx, dy, incy);
221inline double F77NAME(DNRM2)(
const integer *n,
222 const double *
const dx,
225 return F77NAME(dnrm2)(n , dx , incx);
232inline void F77NAME(DROT)(
const integer *n,
237 const double *
const c,
238 const double *
const s)
240 F77NAME(drot)(n , dx , incx, dy, incy, c, s);
247inline void F77NAME(DROTG)(
double *
const da,
252 F77NAME(drotg)(da , db , c, s);
259inline void F77NAME(DSCAL)(
const integer *n,
264 F77NAME(dscal)(n , da , dx, incx);
271inline void F77NAME(DSWAP)(
const integer *n,
277 F77NAME(dswap)(n , dx , incx, dy, incy);
284inline integer F77NAME(IDAMAX)(
const integer *n,
285 const double *
const dx,
288 return F77NAME(idamax)(n , dx , incx);
295inline float F77NAME(SDOT)(
const integer *n,
301 return F77NAME(sdot)(n , dx , incx, dy, incy);
308inline void F77NAME(SAXPY)(
const integer *n,
315 F77NAME(saxpy)(n , da, dx , incx, dy, incy);
322inline void F77NAME(SCOPY)(
const integer *n,
328 F77NAME(scopy)(n , dx , incx, dy, incy);
335inline float F77NAME(SASUM)(
const integer *n,
339 return F77NAME(sasum)(n , dx , incx);
346inline float F77NAME(SNRM2)(
const integer *n,
350 return F77NAME(snrm2)(n , dx , incx);
357inline void F77NAME(SSCAL)(
const integer *n,
362 F77NAME(sscal)(n , da, dx , incx);
369inline integer F77NAME(ISAMAX)(
const integer *n,
370 const float *
const dx,
373 return F77NAME(isamax)(n , dx , incx);
380inline void F77NAME(SSWAP)(
const integer *n,
386 F77NAME(sswap)(n , dx , incx, dy, incy);
389inline void F77NAME(SROT)(
const integer *n,
394 const double *
const c,
395 const double *
const s)
397 F77NAME(srot)(n,dx,incx,dy,incy,c,s);
400inline void F77NAME(SROTG)(
double *
const da,
405 F77NAME(srotg)(da,db,c,s);
414static inline void ERREUR(
const char*
const ch)
423inline double F77NAME(DASUM)(
const integer *n,
424 const double*
const dx,
428 for(integer i=0; i<*n; i+=*incx)
437inline void F77NAME(DAXPY)(
const integer *n,
438 const double *
const da,
439 const double *
const dx,
445 for(
int i=0; i<*n; i+=*incx)
455inline void F77NAME(DCOPY)(
const integer *n,
456 const double *
const dx,
462 for(
int i=0; i<*n; i+=*incx)
474inline double F77NAME(DDOT)(
const integer *n,
475 const double *
const dx,
477 const double *
const dy,
482 for(
int i=0; i<*n; i+=*incx)
493inline double F77NAME(DNRM2)(
const integer *n,
494 const double *
const dx,
498 return sqrt(F77NAME(DDOT)(n, dx, &un, dx, &un));
504inline void F77NAME(DROT)(
const integer *n,
509 const double *
const c,
510 const double *
const s)
512 ERREUR(
"DROT : pas code!");
518inline void F77NAME(DROTG)(
double *
const da,
523 ERREUR(
"DROTG : pas code!");
529inline void F77NAME(DSCAL)(
const integer *n,
534 for(
int i=0; i<*n; i+= *incx)
541inline void F77NAME(DSWAP)(
const integer *n,
549 for(
int i=0; i<*n; i+= *incx)
562inline integer F77NAME(IDAMAX)(
const integer *n,
563 const double *
const dx,
568 for(
int i=1; i<*n; i+=*incx)
580inline float F77NAME(SDOT)(
const integer *n,
586 ERREUR(
"SDOT : pas code!");
593inline void F77NAME(SAXPY)(
const integer *n,
600 ERREUR(
"SAXPY : pas code!");
606inline void F77NAME(SCOPY)(
const integer *n,
612 ERREUR(
"SCOPY : pas code!");
618inline float F77NAME(SASUM)(
const integer *n,
622 ERREUR(
"SASUM : pas code!");
629inline float F77NAME(SNRM2)(
const integer *n,
633 ERREUR(
"SNRM2 : pas code!");
640inline void F77NAME(SSCAL)(
const integer *n,
645 ERREUR(
"SSCAL : pas code!");
651inline integer F77NAME(ISAMAX)(
const integer *n,
652 const float *
const dx,
655 ERREUR(
"ISAMAX : pas code!");
662inline void F77NAME(SSWAP)(
const integer *n,
668 ERREUR(
"SSWAP : pas code!");