Go to the documentation of this file.
25 #ifndef __GSL_CBLAS_H__
26 #define __GSL_CBLAS_H__
32 #define __BEGIN_DECLS extern "C" {
44 #define CBLAS_INDEX size_t
57 float cblas_sdsdot(
const int N,
const float alpha,
const float *X,
58 const int incX,
const float *Y,
const int incY);
59 double cblas_dsdot(
const int N,
const float *X,
const int incX,
const float *Y,
61 float cblas_sdot(
const int N,
const float *X,
const int incX,
62 const float *Y,
const int incY);
63 double cblas_ddot(
const int N,
const double *X,
const int incX,
64 const double *Y,
const int incY);
70 const void *Y,
const int incY,
void *dotu);
72 const void *Y,
const int incY,
void *dotc);
75 const void *Y,
const int incY,
void *dotu);
77 const void *Y,
const int incY,
void *dotc);
83 float cblas_snrm2(
const int N,
const float *X,
const int incX);
84 float cblas_sasum(
const int N,
const float *X,
const int incX);
86 double cblas_dnrm2(
const int N,
const double *X,
const int incX);
87 double cblas_dasum(
const int N,
const double *X,
const int incX);
89 float cblas_scnrm2(
const int N,
const void *X,
const int incX);
90 float cblas_scasum(
const int N,
const void *X,
const int incX);
92 double cblas_dznrm2(
const int N,
const void *X,
const int incX);
93 double cblas_dzasum(
const int N,
const void *X,
const int incX);
113 void cblas_sswap(
const int N,
float *X,
const int incX,
114 float *Y,
const int incY);
115 void cblas_scopy(
const int N,
const float *X,
const int incX,
116 float *Y,
const int incY);
117 void cblas_saxpy(
const int N,
const float alpha,
const float *X,
118 const int incX,
float *Y,
const int incY);
120 void cblas_dswap(
const int N,
double *X,
const int incX,
121 double *Y,
const int incY);
122 void cblas_dcopy(
const int N,
const double *X,
const int incX,
123 double *Y,
const int incY);
124 void cblas_daxpy(
const int N,
const double alpha,
const double *X,
125 const int incX,
double *Y,
const int incY);
127 void cblas_cswap(
const int N,
void *X,
const int incX,
128 void *Y,
const int incY);
129 void cblas_ccopy(
const int N,
const void *X,
const int incX,
130 void *Y,
const int incY);
131 void cblas_caxpy(
const int N,
const void *alpha,
const void *X,
132 const int incX,
void *Y,
const int incY);
134 void cblas_zswap(
const int N,
void *X,
const int incX,
135 void *Y,
const int incY);
136 void cblas_zcopy(
const int N,
const void *X,
const int incX,
137 void *Y,
const int incY);
138 void cblas_zaxpy(
const int N,
const void *alpha,
const void *X,
139 const int incX,
void *Y,
const int incY);
145 void cblas_srotg(
float *a,
float *b,
float *
c,
float *s);
146 void cblas_srotmg(
float *d1,
float *d2,
float *b1,
const float b2,
float *P);
147 void cblas_srot(
const int N,
float *X,
const int incX,
148 float *Y,
const int incY,
const float c,
const float s);
149 void cblas_srotm(
const int N,
float *X,
const int incX,
150 float *Y,
const int incY,
const float *P);
152 void cblas_drotg(
double *a,
double *b,
double *
c,
double *s);
153 void cblas_drotmg(
double *d1,
double *d2,
double *b1,
const double b2,
double *P);
154 void cblas_drot(
const int N,
double *X,
const int incX,
155 double *Y,
const int incY,
const double c,
const double s);
156 void cblas_drotm(
const int N,
double *X,
const int incX,
157 double *Y,
const int incY,
const double *P);
163 void cblas_sscal(
const int N,
const float alpha,
float *X,
const int incX);
164 void cblas_dscal(
const int N,
const double alpha,
double *X,
const int incX);
165 void cblas_cscal(
const int N,
const void *alpha,
void *X,
const int incX);
166 void cblas_zscal(
const int N,
const void *alpha,
void *X,
const int incX);
167 void cblas_csscal(
const int N,
const float alpha,
void *X,
const int incX);
168 void cblas_zdscal(
const int N,
const double alpha,
void *X,
const int incX);
181 const float alpha,
const float *A,
const int lda,
182 const float *X,
const int incX,
const float beta,
183 float *Y,
const int incY);
186 const int KL,
const int KU,
const float alpha,
187 const float *A,
const int lda,
const float *X,
188 const int incX,
const float beta,
float *Y,
const int incY);
191 const int N,
const float *A,
const int lda,
192 float *X,
const int incX);
195 const int N,
const int K,
const float *A,
const int lda,
196 float *X,
const int incX);
199 const int N,
const float *Ap,
float *X,
const int incX);
202 const int N,
const float *A,
const int lda,
float *X,
206 const int N,
const int K,
const float *A,
const int lda,
207 float *X,
const int incX);
210 const int N,
const float *Ap,
float *X,
const int incX);
214 const double alpha,
const double *A,
const int lda,
215 const double *X,
const int incX,
const double beta,
216 double *Y,
const int incY);
219 const int KL,
const int KU,
const double alpha,
220 const double *A,
const int lda,
const double *X,
221 const int incX,
const double beta,
double *Y,
const int incY);
224 const int N,
const double *A,
const int lda,
225 double *X,
const int incX);
228 const int N,
const int K,
const double *A,
const int lda,
229 double *X,
const int incX);
232 const int N,
const double *Ap,
double *X,
const int incX);
235 const int N,
const double *A,
const int lda,
double *X,
239 const int N,
const int K,
const double *A,
const int lda,
240 double *X,
const int incX);
243 const int N,
const double *Ap,
double *X,
const int incX);
247 const void *alpha,
const void *A,
const int lda,
248 const void *X,
const int incX,
const void *beta,
249 void *Y,
const int incY);
252 const int KL,
const int KU,
const void *alpha,
253 const void *A,
const int lda,
const void *X,
254 const int incX,
const void *beta,
void *Y,
const int incY);
257 const int N,
const void *A,
const int lda,
258 void *X,
const int incX);
261 const int N,
const int K,
const void *A,
const int lda,
262 void *X,
const int incX);
265 const int N,
const void *Ap,
void *X,
const int incX);
268 const int N,
const void *A,
const int lda,
void *X,
272 const int N,
const int K,
const void *A,
const int lda,
273 void *X,
const int incX);
276 const int N,
const void *Ap,
void *X,
const int incX);
280 const void *alpha,
const void *A,
const int lda,
281 const void *X,
const int incX,
const void *beta,
282 void *Y,
const int incY);
285 const int KL,
const int KU,
const void *alpha,
286 const void *A,
const int lda,
const void *X,
287 const int incX,
const void *beta,
void *Y,
const int incY);
290 const int N,
const void *A,
const int lda,
291 void *X,
const int incX);
294 const int N,
const int K,
const void *A,
const int lda,
295 void *X,
const int incX);
298 const int N,
const void *Ap,
void *X,
const int incX);
301 const int N,
const void *A,
const int lda,
void *X,
305 const int N,
const int K,
const void *A,
const int lda,
306 void *X,
const int incX);
309 const int N,
const void *Ap,
void *X,
const int incX);
316 const int N,
const float alpha,
const float *A,
317 const int lda,
const float *X,
const int incX,
318 const float beta,
float *Y,
const int incY);
320 const int N,
const int K,
const float alpha,
const float *A,
321 const int lda,
const float *X,
const int incX,
322 const float beta,
float *Y,
const int incY);
324 const int N,
const float alpha,
const float *Ap,
325 const float *X,
const int incX,
326 const float beta,
float *Y,
const int incY);
328 const float alpha,
const float *X,
const int incX,
329 const float *Y,
const int incY,
float *A,
const int lda);
331 const int N,
const float alpha,
const float *X,
332 const int incX,
float *A,
const int lda);
334 const int N,
const float alpha,
const float *X,
335 const int incX,
float *Ap);
337 const int N,
const float alpha,
const float *X,
338 const int incX,
const float *Y,
const int incY,
float *A,
341 const int N,
const float alpha,
const float *X,
342 const int incX,
const float *Y,
const int incY,
float *A);
345 const int N,
const double alpha,
const double *A,
346 const int lda,
const double *X,
const int incX,
347 const double beta,
double *Y,
const int incY);
349 const int N,
const int K,
const double alpha,
const double *A,
350 const int lda,
const double *X,
const int incX,
351 const double beta,
double *Y,
const int incY);
353 const int N,
const double alpha,
const double *Ap,
354 const double *X,
const int incX,
355 const double beta,
double *Y,
const int incY);
357 const double alpha,
const double *X,
const int incX,
358 const double *Y,
const int incY,
double *A,
const int lda);
360 const int N,
const double alpha,
const double *X,
361 const int incX,
double *A,
const int lda);
363 const int N,
const double alpha,
const double *X,
364 const int incX,
double *Ap);
366 const int N,
const double alpha,
const double *X,
367 const int incX,
const double *Y,
const int incY,
double *A,
370 const int N,
const double alpha,
const double *X,
371 const int incX,
const double *Y,
const int incY,
double *A);
378 const int N,
const void *alpha,
const void *A,
379 const int lda,
const void *X,
const int incX,
380 const void *beta,
void *Y,
const int incY);
382 const int N,
const int K,
const void *alpha,
const void *A,
383 const int lda,
const void *X,
const int incX,
384 const void *beta,
void *Y,
const int incY);
386 const int N,
const void *alpha,
const void *Ap,
387 const void *X,
const int incX,
388 const void *beta,
void *Y,
const int incY);
390 const void *alpha,
const void *X,
const int incX,
391 const void *Y,
const int incY,
void *A,
const int lda);
393 const void *alpha,
const void *X,
const int incX,
394 const void *Y,
const int incY,
void *A,
const int lda);
396 const int N,
const float alpha,
const void *X,
const int incX,
397 void *A,
const int lda);
399 const int N,
const float alpha,
const void *X,
400 const int incX,
void *A);
402 const void *alpha,
const void *X,
const int incX,
403 const void *Y,
const int incY,
void *A,
const int lda);
405 const void *alpha,
const void *X,
const int incX,
406 const void *Y,
const int incY,
void *Ap);
409 const int N,
const void *alpha,
const void *A,
410 const int lda,
const void *X,
const int incX,
411 const void *beta,
void *Y,
const int incY);
413 const int N,
const int K,
const void *alpha,
const void *A,
414 const int lda,
const void *X,
const int incX,
415 const void *beta,
void *Y,
const int incY);
417 const int N,
const void *alpha,
const void *Ap,
418 const void *X,
const int incX,
419 const void *beta,
void *Y,
const int incY);
421 const void *alpha,
const void *X,
const int incX,
422 const void *Y,
const int incY,
void *A,
const int lda);
424 const void *alpha,
const void *X,
const int incX,
425 const void *Y,
const int incY,
void *A,
const int lda);
427 const int N,
const double alpha,
const void *X,
const int incX,
428 void *A,
const int lda);
430 const int N,
const double alpha,
const void *X,
431 const int incX,
void *A);
433 const void *alpha,
const void *X,
const int incX,
434 const void *Y,
const int incY,
void *A,
const int lda);
436 const void *alpha,
const void *X,
const int incX,
437 const void *Y,
const int incY,
void *Ap);
450 const int K,
const float alpha,
const float *A,
451 const int lda,
const float *B,
const int ldb,
452 const float beta,
float *C,
const int ldc);
454 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
455 const float alpha,
const float *A,
const int lda,
456 const float *B,
const int ldb,
const float beta,
457 float *C,
const int ldc);
460 const float alpha,
const float *A,
const int lda,
461 const float beta,
float *C,
const int ldc);
464 const float alpha,
const float *A,
const int lda,
465 const float *B,
const int ldb,
const float beta,
466 float *C,
const int ldc);
469 const enum CBLAS_DIAG Diag,
const int M,
const int N,
470 const float alpha,
const float *A,
const int lda,
471 float *B,
const int ldb);
474 const enum CBLAS_DIAG Diag,
const int M,
const int N,
475 const float alpha,
const float *A,
const int lda,
476 float *B,
const int ldb);
480 const int K,
const double alpha,
const double *A,
481 const int lda,
const double *B,
const int ldb,
482 const double beta,
double *C,
const int ldc);
484 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
485 const double alpha,
const double *A,
const int lda,
486 const double *B,
const int ldb,
const double beta,
487 double *C,
const int ldc);
490 const double alpha,
const double *A,
const int lda,
491 const double beta,
double *C,
const int ldc);
494 const double alpha,
const double *A,
const int lda,
495 const double *B,
const int ldb,
const double beta,
496 double *C,
const int ldc);
499 const enum CBLAS_DIAG Diag,
const int M,
const int N,
500 const double alpha,
const double *A,
const int lda,
501 double *B,
const int ldb);
504 const enum CBLAS_DIAG Diag,
const int M,
const int N,
505 const double alpha,
const double *A,
const int lda,
506 double *B,
const int ldb);
510 const int K,
const void *alpha,
const void *A,
511 const int lda,
const void *B,
const int ldb,
512 const void *beta,
void *C,
const int ldc);
514 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
515 const void *alpha,
const void *A,
const int lda,
516 const void *B,
const int ldb,
const void *beta,
517 void *C,
const int ldc);
520 const void *alpha,
const void *A,
const int lda,
521 const void *beta,
void *C,
const int ldc);
524 const void *alpha,
const void *A,
const int lda,
525 const void *B,
const int ldb,
const void *beta,
526 void *C,
const int ldc);
529 const enum CBLAS_DIAG Diag,
const int M,
const int N,
530 const void *alpha,
const void *A,
const int lda,
531 void *B,
const int ldb);
534 const enum CBLAS_DIAG Diag,
const int M,
const int N,
535 const void *alpha,
const void *A,
const int lda,
536 void *B,
const int ldb);
540 const int K,
const void *alpha,
const void *A,
541 const int lda,
const void *B,
const int ldb,
542 const void *beta,
void *C,
const int ldc);
544 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
545 const void *alpha,
const void *A,
const int lda,
546 const void *B,
const int ldb,
const void *beta,
547 void *C,
const int ldc);
550 const void *alpha,
const void *A,
const int lda,
551 const void *beta,
void *C,
const int ldc);
554 const void *alpha,
const void *A,
const int lda,
555 const void *B,
const int ldb,
const void *beta,
556 void *C,
const int ldc);
559 const enum CBLAS_DIAG Diag,
const int M,
const int N,
560 const void *alpha,
const void *A,
const int lda,
561 void *B,
const int ldb);
564 const enum CBLAS_DIAG Diag,
const int M,
const int N,
565 const void *alpha,
const void *A,
const int lda,
566 void *B,
const int ldb);
573 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
574 const void *alpha,
const void *A,
const int lda,
575 const void *B,
const int ldb,
const void *beta,
576 void *C,
const int ldc);
579 const float alpha,
const void *A,
const int lda,
580 const float beta,
void *C,
const int ldc);
583 const void *alpha,
const void *A,
const int lda,
584 const void *B,
const int ldb,
const float beta,
585 void *C,
const int ldc);
588 const enum CBLAS_UPLO Uplo,
const int M,
const int N,
589 const void *alpha,
const void *A,
const int lda,
590 const void *B,
const int ldb,
const void *beta,
591 void *C,
const int ldc);
594 const double alpha,
const void *A,
const int lda,
595 const double beta,
void *C,
const int ldc);
598 const void *alpha,
const void *A,
const int lda,
599 const void *B,
const int ldb,
const double beta,
600 void *C,
const int ldc);
602 void cblas_xerbla(
int p,
const char *rout,
const char *form, ...);