42 #include "DenseLinAlgPack_BLAS_Cpp.hpp"
47 namespace BLAS_C_Decl {
49 typedef FortranTypes::f_int f_int;
50 typedef FortranTypes::f_real f_real;
51 typedef FortranTypes::f_dbl_prec f_dbl_prec;
61 FORTRAN_FUNC_DECL_UL(
void,DROTG,drotg)(f_dbl_prec* A, f_dbl_prec* B, f_dbl_prec* C, f_dbl_prec* S);
64 FORTRAN_FUNC_DECL_UL(
void,DROT,drot)(
const f_int& N, f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY,
65 const f_dbl_prec& C,
const f_dbl_prec& S);
68 FORTRAN_FUNC_DECL_UL(
void,DSWAP,dswap)(
const f_int& N, f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY);
71 FORTRAN_FUNC_DECL_UL(
void,DSCAL,dscal)(
const f_int& N,
const f_dbl_prec& ALPHA, f_dbl_prec* X,
const f_int& INCX);
74 FORTRAN_FUNC_DECL_UL(
void,DCOPY,dcopy)(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY);
77 FORTRAN_FUNC_DECL_UL(
void,DAXPY,daxpy)(
const f_int& N,
const f_dbl_prec& A,
const f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
81 FORTRAN_FUNC_DECL_UL(f_dbl_prec,DDOT,ddot)(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX,
const f_dbl_prec* Y,
const f_int& INCY);
82 FORTRAN_FUNC_DECL_UL(f_dbl_prec,DSDOT,dsdot)(
const f_int& N,
const f_real* X,
const f_int& INCX,
const f_real* Y,
const f_int& INCY);
85 FORTRAN_FUNC_DECL_UL(f_dbl_prec,DNRM2,dnrm2)(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX);
88 FORTRAN_FUNC_DECL_UL(f_dbl_prec,DASUM,dasum)(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX);
91 FORTRAN_FUNC_DECL_UL(f_dbl_prec,IDAMAX,idamax)(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX);
97 FORTRAN_FUNC_DECL_UL(
void,DGEMV,dgemv)(FORTRAN_CONST_CHAR_1_ARG(TRANSA)
98 ,
const f_int& M,
const f_int& N,
const f_dbl_prec& ALPHA
99 ,
const f_dbl_prec* A,
const f_int& LDA,
const f_dbl_prec* X,
const f_int& INCX
100 ,
const f_dbl_prec& BETA, f_dbl_prec* Y,
const f_int& INCY
104 FORTRAN_FUNC_DECL_UL(
void,DGBMV,dgbmv)(FORTRAN_CONST_CHAR_1_ARG(TRANSA)
105 ,
const f_int& M,
const f_int& N,
const f_int& KL,
const f_int& KU
106 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA,
const f_dbl_prec* X
107 ,
const f_int& INCX,
const f_dbl_prec& BETA, f_dbl_prec* Y,
const f_int& INCY
117 FORTRAN_FUNC_DECL_UL(
void,DSYMV,dsymv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
119 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA
120 ,
const f_dbl_prec* X,
const f_int& INCX,
const f_dbl_prec& BETA
121 , f_dbl_prec* Y,
const f_int& INCY
125 FORTRAN_FUNC_DECL_UL(
void,DSBMV,dsbmv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
126 ,
const f_int& N,
const f_int& K
127 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA
128 ,
const f_dbl_prec* X,
const f_int& INCX,
const f_dbl_prec& BETA
129 , f_dbl_prec* Y,
const f_int& INCY
133 FORTRAN_FUNC_DECL_UL(
void,DSPMV,dspmv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
135 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* AP
136 ,
const f_dbl_prec* X,
const f_int& INCX,
const f_dbl_prec& BETA
137 , f_dbl_prec* Y,
const f_int& INCY
141 FORTRAN_FUNC_DECL_UL(
void,DTRMV,dtrmv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
142 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG),
const f_int& N
143 ,
const f_dbl_prec* A,
const f_int& LDA, f_dbl_prec* X,
const f_int& INCX);
146 FORTRAN_FUNC_DECL_UL(
void,DTBMV,dtbmv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
147 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG)
148 ,
const f_int& N,
const f_int& K
149 ,
const f_dbl_prec* A,
const f_int& LDA, f_dbl_prec* X,
const f_int& INCX);
152 FORTRAN_FUNC_DECL_UL(
void,DTPMV,dtpmv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
153 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG),
const f_int& N
154 ,
const f_dbl_prec* AP, f_dbl_prec* X,
const f_int& INCX);
157 FORTRAN_FUNC_DECL_UL(
void,DTRSV,dtrsv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
158 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG),
const f_int& N
159 ,
const f_dbl_prec* A,
const f_int& LDA, f_dbl_prec* X,
const f_int& INCX);
162 FORTRAN_FUNC_DECL_UL(
void,DTBSV,dtbsv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
163 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG),
const f_int& N
165 ,
const f_dbl_prec* A,
const f_int& LDA, f_dbl_prec* X,
const f_int& INCX);
168 FORTRAN_FUNC_DECL_UL(
void,DTPSV,dtpsv)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
169 , FORTRAN_CONST_CHAR_1_ARG(TRANS), FORTRAN_CONST_CHAR_1_ARG(DIAG),
const f_int& N
170 ,
const f_dbl_prec* AP, f_dbl_prec* X,
const f_int& INCX);
173 FORTRAN_FUNC_DECL_UL(
void,DGER,dger)(
const f_int& M,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* X,
const f_int& INCX,
174 const f_dbl_prec* Y,
const f_int& INCY, f_dbl_prec* A,
const f_int& LDA);
185 FORTRAN_FUNC_DECL_UL(
void,DSYR,dsyr)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
186 ,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* X,
const f_int& INCX
187 , f_dbl_prec* A,
const f_int& LDA);
190 FORTRAN_FUNC_DECL_UL(
void,DSPR,dspr)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
191 ,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* X,
const f_int& INCX
195 FORTRAN_FUNC_DECL_UL(
void,DSYR2,dsyr2)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
196 ,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* X,
const f_int& INCX
197 ,
const f_dbl_prec* Y,
const f_int& INCY, f_dbl_prec* A,
const f_int& LDA);
200 FORTRAN_FUNC_DECL_UL(
void,DSPR2,dspr2)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
201 ,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* X,
const f_int& INCX
202 ,
const f_dbl_prec* Y,
const f_int& INCY, f_dbl_prec* AP);
208 FORTRAN_FUNC_DECL_UL(
void,DGEMM,dgemm)(FORTRAN_CONST_CHAR_1_ARG(TRANSA)
209 , FORTRAN_CONST_CHAR_1_ARG(TRANSB),
const f_int& M,
const f_int& N,
const f_int& K
210 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA,
const f_dbl_prec* B
211 ,
const f_int& LDB,
const f_dbl_prec& BETA, f_dbl_prec* C,
const f_int& LDC);
214 FORTRAN_FUNC_DECL_UL(
void,DSYMM,dsymm)(FORTRAN_CONST_CHAR_1_ARG(SIDE)
215 , FORTRAN_CONST_CHAR_1_ARG(UPLO),
const f_int& M,
const f_int& N
216 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA,
const f_dbl_prec* B
217 ,
const f_int& LDB,
const f_dbl_prec& BETA, f_dbl_prec* C,
const f_int& LDC);
222 FORTRAN_FUNC_DECL_UL(
void,DSYRK,dsyrk)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
223 , FORTRAN_CONST_CHAR_1_ARG(TRANS),
const f_int& N,
const f_int& K
224 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA
225 ,
const f_dbl_prec& BETA, f_dbl_prec* C,
const f_int& LDC);
230 FORTRAN_FUNC_DECL_UL(
void,DSYR2K,dsyr2k)(FORTRAN_CONST_CHAR_1_ARG(UPLO)
231 , FORTRAN_CONST_CHAR_1_ARG(TRANS),
const f_int& N,
const f_int& K
232 ,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A,
const f_int& LDA,
const f_dbl_prec* B
233 ,
const f_int& LDB,
const f_dbl_prec& BETA, f_dbl_prec* C,
const f_int& LDC);
238 FORTRAN_FUNC_DECL_UL(
void,DTRMM,dtrmm)(FORTRAN_CONST_CHAR_1_ARG(SIDE)
239 , FORTRAN_CONST_CHAR_1_ARG(UPLO), FORTRAN_CONST_CHAR_1_ARG(TRANSA)
240 , FORTRAN_CONST_CHAR_1_ARG(DIAG)
241 ,
const f_int& M,
const f_int& N,
const f_dbl_prec& ALPHA,
const f_dbl_prec* A
242 ,
const f_int& LDA, f_dbl_prec* B,
const f_int& LDB);
245 FORTRAN_FUNC_DECL_UL(
void,DTRSM,dtrsm)(FORTRAN_CONST_CHAR_1_ARG(SIDE)
246 , FORTRAN_CONST_CHAR_1_ARG(UPLO), FORTRAN_CONST_CHAR_1_ARG(TRANSA)
247 , FORTRAN_CONST_CHAR_1_ARG(DIAG)
248 ,
const f_int& M,
const f_int& N,
const f_dbl_prec& ALPHA
249 ,
const f_dbl_prec* A,
const f_int& LDA, f_dbl_prec* B,
const f_int& LDB);
260 void BLAS_Cpp::rotg(f_dbl_prec* a, f_dbl_prec* b, f_dbl_prec* c, f_dbl_prec* s) {
261 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DROTG,drotg)(a,b,c,s);
266 void BLAS_Cpp::rot(
const f_int& N, f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY
267 ,
const f_dbl_prec& C,
const f_dbl_prec& S)
269 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DROT,drot)(N, X, INCX, Y, INCY, C, S);
274 void BLAS_Cpp::swap(
const f_int& N, f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY)
276 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSWAP,dswap)(N, X, INCX, Y, INCY);
281 void BLAS_Cpp::scal(
const f_int& N,
const f_dbl_prec& ALPHA, f_dbl_prec* X,
const f_int& INCX)
283 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSCAL,dscal)(N, ALPHA, X, INCX);
288 void BLAS_Cpp::copy(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y,
const f_int& INCY)
290 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DCOPY,dcopy)(N, X, INCX, Y, INCY);
295 void BLAS_Cpp::axpy(
const f_int& N,
const f_dbl_prec& A,
const f_dbl_prec* X,
const f_int& INCX, f_dbl_prec* Y
298 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DAXPY,daxpy)(N, A, X, INCX, Y, INCY);
303 BLAS_Cpp::f_dbl_prec BLAS_Cpp::dot(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX,
const f_dbl_prec* Y,
const f_int& INCY)
305 return BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DDOT,ddot)(N, X, INCX, Y, INCY);
310 BLAS_Cpp::f_dbl_prec BLAS_Cpp::nrm2(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX)
312 return BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DNRM2,dnrm2)(N, X, INCX);
317 BLAS_Cpp::f_dbl_prec BLAS_Cpp::asum(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX)
319 return BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DASUM,dasum)(N, X, INCX);
324 BLAS_Cpp::f_dbl_prec BLAS_Cpp::iamax(
const f_int& N,
const f_dbl_prec* X,
const f_int& INCX)
326 return BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(IDAMAX,idamax)(N, X, INCX);
333 void BLAS_Cpp::gemv(
Transp transa, f_int m, f_int n, f_dbl_prec alpha,
const f_dbl_prec* pa
334 , f_int lda,
const f_dbl_prec* x, f_int incx, f_dbl_prec beta, f_dbl_prec* py, f_int incy)
336 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DGEMV,dgemv)(FORTRAN_CHAR_1_ARG_CALL(TransChar[transa]), m, n, alpha, pa, lda, x, incx, beta, py, incy);
341 void BLAS_Cpp::gbmv(
Transp transa, f_int m, f_int n, f_int kl, f_int ku, f_dbl_prec alpha,
const f_dbl_prec* pa
342 , f_int lda,
const f_dbl_prec* x, f_int incx, f_dbl_prec beta, f_dbl_prec* py, f_int incy)
344 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DGBMV,dgbmv)(FORTRAN_CHAR_1_ARG_CALL(TransChar[transa]), m, n, kl, ku, alpha, pa, lda, x, incx, beta, py, incy);
355 void BLAS_Cpp::symv(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* pa
356 , f_int lda,
const f_dbl_prec* x, f_int incx, f_dbl_prec beta, f_dbl_prec* py, f_int incy)
358 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYMV,dsymv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, pa, lda, x, incx, beta, py, incy);
363 void BLAS_Cpp::sbmv(
Uplo uplo, f_int n, f_int k, f_dbl_prec alpha,
const f_dbl_prec* pa
364 , f_int lda,
const f_dbl_prec* x, f_int incx, f_dbl_prec beta, f_dbl_prec* py, f_int incy)
366 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSBMV,dsbmv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, k, alpha, pa, lda, x, incx, beta, py, incy);
371 void BLAS_Cpp::spmv(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* pap
372 ,
const f_dbl_prec* x, f_int incx, f_dbl_prec beta, f_dbl_prec* py, f_int incy)
374 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSPMV,dspmv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, pap, x, incx, beta, py, incy);
380 , f_int lda, f_dbl_prec* px, f_int incx)
382 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTRMV,dtrmv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
383 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]),FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
384 ,n, pa, lda, px, incx);
389 void BLAS_Cpp::tbmv(
Uplo uplo,
Transp trans,
Diag diag, f_int n, f_int k,
const f_dbl_prec* pa
390 , f_int lda, f_dbl_prec* px, f_int incx)
392 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTBMV,dtbmv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
393 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
394 ,n, k, pa, lda, px, incx);
400 , f_dbl_prec* px, f_int incx)
402 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTPMV,dtpmv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
403 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
410 , f_int lda, f_dbl_prec* px, f_int incx)
412 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTRSV,dtrsv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
413 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
414 ,n, pa, lda, px, incx);
419 void BLAS_Cpp::tbsv(
Uplo uplo,
Transp trans,
Diag diag, f_int n, f_int k,
const f_dbl_prec* pa
420 , f_int lda, f_dbl_prec* px, f_int incx)
422 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTBSV,dtbsv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
423 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
424 ,n, k, pa, lda, px, incx);
430 , f_dbl_prec* px, f_int incx)
432 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTPSV,dtpsv)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
433 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag])
439 void BLAS_Cpp::ger(f_int m, f_int n, f_dbl_prec alpha,
const f_dbl_prec* px
440 , f_int incx,
const f_dbl_prec* py, f_int incy, f_dbl_prec* pa, f_int lda)
442 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DGER,dger)(m, n, alpha, px, incx, py, incy, pa, lda);
455 void BLAS_Cpp::syr(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* px
456 , f_int incx, f_dbl_prec* pa, f_int lda)
458 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYR,dsyr)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, px, incx, pa, lda);
463 void BLAS_Cpp::spr(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* px
464 , f_int incx, f_dbl_prec* pap)
466 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSPR,dspr)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, px, incx, pap);
471 void BLAS_Cpp::syr2(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* px
472 , f_int incx,
const f_dbl_prec* py, f_int incy, f_dbl_prec* pa, f_int lda)
474 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYR2,dsyr2)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, px, incx, py, incy, pa, lda);
479 void BLAS_Cpp::spr2(
Uplo uplo, f_int n, f_dbl_prec alpha,
const f_dbl_prec* px
480 , f_int incx,
const f_dbl_prec* py, f_int incy, f_dbl_prec* pap)
482 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSPR2,dspr2)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), n, alpha, px, incx, py, incy, pap);
489 void BLAS_Cpp::gemm(
Transp transa,
Transp transb, f_int m, f_int n, f_int k, f_dbl_prec alpha,
const f_dbl_prec* pa
490 , f_int lda,
const f_dbl_prec* pb, f_int ldb, f_dbl_prec beta, f_dbl_prec* pc, f_int ldc)
492 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DGEMM,dgemm)(FORTRAN_CHAR_1_ARG_CALL(TransChar[transa])
493 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[transb]), m, n, k, alpha, pa, lda, pb, ldb
499 void BLAS_Cpp::symm(
Side side,
Uplo uplo, f_int m, f_int n, f_dbl_prec alpha,
const f_dbl_prec* pa
500 , f_int lda,
const f_dbl_prec* pb, f_int ldb, f_dbl_prec beta, f_dbl_prec* pc, f_int ldc)
502 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYMM,dsymm)(FORTRAN_CHAR_1_ARG_CALL(SideChar[side]), FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), m, n, alpha, pa, lda, pb, ldb, beta, pc, ldc);
509 void BLAS_Cpp::syrk(
Uplo uplo,
Transp trans, f_int n, f_int k, f_dbl_prec alpha,
const f_dbl_prec* pa
510 , f_int lda, f_dbl_prec beta, f_dbl_prec* pc, f_int ldc)
512 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYRK,dsyrk)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
513 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), n, k, alpha, pa, lda, beta, pc, ldc);
520 void BLAS_Cpp::syr2k(
Uplo uplo,
Transp trans, f_int n, f_int k, f_dbl_prec alpha,
const f_dbl_prec* pa
521 , f_int lda,
const f_dbl_prec* pb, f_int ldb, f_dbl_prec beta, f_dbl_prec* pc, f_int ldc)
523 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DSYR2K,dsyr2k)(FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo])
524 ,FORTRAN_CHAR_1_ARG_CALL(TransChar[trans]), n, k, alpha, pa, lda, pb, ldb
532 void BLAS_Cpp::trmm(
Side side,
Uplo uplo,
Transp transa,
Diag diag, f_int m, f_int n, f_dbl_prec alpha
533 ,
const f_dbl_prec* pa, f_int lda, f_dbl_prec* pb, f_int ldb)
535 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTRMM,dtrmm)(FORTRAN_CHAR_1_ARG_CALL(SideChar[side])
536 ,FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), FORTRAN_CHAR_1_ARG_CALL(TransChar[transa])
537 ,FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag]), m, n, alpha, pa, lda, pb, ldb);
542 void BLAS_Cpp::trsm(
Side side,
Uplo uplo,
Transp transa,
Diag diag, f_int m, f_int n, f_dbl_prec alpha
543 ,
const f_dbl_prec* pa, f_int lda, f_dbl_prec* pb, f_int ldb)
545 BLAS_C_Decl::FORTRAN_FUNC_CALL_UL(DTRSM,dtrsm)(FORTRAN_CHAR_1_ARG_CALL(SideChar[side])
546 ,FORTRAN_CHAR_1_ARG_CALL(UploChar[uplo]), FORTRAN_CHAR_1_ARG_CALL(TransChar[transa])
547 ,FORTRAN_CHAR_1_ARG_CALL(DiagChar[diag]), m, n, alpha, pa, lda, pb, ldb);