Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_BLAS_wrappers.hpp
Go to the documentation of this file.
1 /*
2 // @HEADER
3 // ***********************************************************************
4 //
5 // Teuchos: Common Tools Package
6 // Copyright (2004) Sandia Corporation
7 //
8 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9 // license for use of this work by or on behalf of the U.S. Government.
10 //
11 // Redistribution and use in source and binary forms, with or without
12 // modification, are permitted provided that the following conditions are
13 // met:
14 //
15 // 1. Redistributions of source code must retain the above copyright
16 // notice, this list of conditions and the following disclaimer.
17 //
18 // 2. Redistributions in binary form must reproduce the above copyright
19 // notice, this list of conditions and the following disclaimer in the
20 // documentation and/or other materials provided with the distribution.
21 //
22 // 3. Neither the name of the Corporation nor the names of the
23 // contributors may be used to endorse or promote products derived from
24 // this software without specific prior written permission.
25 //
26 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 //
38 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
39 //
40 // ***********************************************************************
41 // @HEADER
42 */
43 
44 #ifndef _TEUCHOS_BLAS_WRAPPERS_HPP_
45 #define _TEUCHOS_BLAS_WRAPPERS_HPP_
46 
47 #include "Teuchos_ConfigDefs.hpp"
48 #ifdef _MSC_VER
49 /* disable warning for C-linkage returning complex class */
50 #pragma warning ( disable : 4190 )
51 #endif
52 
58 /* A) Define PREFIX and Teuchos_fcd based on platform. */
59 
60 #if defined(INTEL_CXML)
61 # define PREFIX __stdcall
62 # define Teuchos_fcd const char *, unsigned int
63 #elif defined(INTEL_MKL)
64 # define PREFIX
65 # define Teuchos_fcd const char *
66 #else /* Not CRAY_T3X or INTEL_CXML or INTEL_MKL */
67 # define PREFIX
68 # define Teuchos_fcd const char *
69 #endif
70 
71 
72 /* B) Take care of of the link name case */
73 
74 
75 #define DROTG_F77 F77_BLAS_MANGLE(drotg,DROTG)
76 #define DROT_F77 F77_BLAS_MANGLE(drot,DROT)
77 #define DASUM_F77 F77_BLAS_MANGLE(dasum,DASUM)
78 #define DAXPY_F77 F77_BLAS_MANGLE(daxpy,DAXPY)
79 #define DCOPY_F77 F77_BLAS_MANGLE(dcopy,DCOPY)
80 #define DDOT_F77 F77_BLAS_MANGLE(ddot,DDOT)
81 #define DNRM2_F77 F77_BLAS_MANGLE(dnrm2,DNRM2)
82 #define DSCAL_F77 F77_BLAS_MANGLE(dscal,DSCAL)
83 #define IDAMAX_F77 F77_BLAS_MANGLE(idamax,IDAMAX)
84 #define DGEMV_F77 F77_BLAS_MANGLE(dgemv,DGEMV)
85 #define DGER_F77 F77_BLAS_MANGLE(dger,DGER)
86 #define DTRMV_F77 F77_BLAS_MANGLE(dtrmv,DTRMV)
87 #define DGEMM_F77 F77_BLAS_MANGLE(dgemm,DGEMM)
88 #define DSYMM_F77 F77_BLAS_MANGLE(dsymm,DSYMM)
89 #define DSYRK_F77 F77_BLAS_MANGLE(dsyrk,DSYRK)
90 #define DTRMM_F77 F77_BLAS_MANGLE(dtrmm,DTRMM)
91 #define DTRSM_F77 F77_BLAS_MANGLE(dtrsm,DTRSM)
92 
93 #ifdef HAVE_TEUCHOS_COMPLEX
94 
95 #define ZROTG_F77 F77_BLAS_MANGLE(zrotg,ZROTG)
96 #define ZROT_F77 F77_BLAS_MANGLE(zrot,ZROT)
97 #define ZASUM_F77 F77_BLAS_MANGLE(dzasum,DZASUM)
98 #define ZAXPY_F77 F77_BLAS_MANGLE(zaxpy,ZAXPY)
99 #define ZCOPY_F77 F77_BLAS_MANGLE(zcopy,ZCOPY)
100 #define ZDOT_F77 F77_BLAS_MANGLE(zdotc,ZDOTC)
101 #define ZNRM2_F77 F77_BLAS_MANGLE(dznrm2,DZNRM2)
102 #define ZSCAL_F77 F77_BLAS_MANGLE(zscal,ZSCAL)
103 #define IZAMAX_F77 F77_BLAS_MANGLE(izamax,IZAMAX)
104 #define ZGEMV_F77 F77_BLAS_MANGLE(zgemv,ZGEMV)
105 #define ZGER_F77 F77_BLAS_MANGLE(zgeru,ZGERU)
106 #define ZTRMV_F77 F77_BLAS_MANGLE(ztrmv,ZTRMV)
107 #define ZGEMM_F77 F77_BLAS_MANGLE(zgemm,ZGEMM)
108 #define ZSYMM_F77 F77_BLAS_MANGLE(zsymm,ZSYMM)
109 #define ZSYRK_F77 F77_BLAS_MANGLE(zsyrk,ZSYRK)
110 #define ZTRMM_F77 F77_BLAS_MANGLE(ztrmm,ZTRMM)
111 #define ZTRSM_F77 F77_BLAS_MANGLE(ztrsm,ZTRSM)
112 
113 #endif /* HAVE_TEUCHOS_COMPLEX */
114 
115 #define SROTG_F77 F77_BLAS_MANGLE(srotg,SROTG)
116 #define SROT_F77 F77_BLAS_MANGLE(srot,SROT)
117 #define SSCAL_F77 F77_BLAS_MANGLE(sscal,SSCAL)
118 #define SCOPY_F77 F77_BLAS_MANGLE(scopy,SCOPY)
119 #define SAXPY_F77 F77_BLAS_MANGLE(saxpy,SAXPY)
120 #define SDOT_F77 F77_BLAS_MANGLE(sdot,SDOT)
121 #define SNRM2_F77 F77_BLAS_MANGLE(snrm2,SNRM2)
122 #define SASUM_F77 F77_BLAS_MANGLE(sasum,SASUM)
123 #define ISAMAX_F77 F77_BLAS_MANGLE(isamax,ISAMAX)
124 #define SGEMV_F77 F77_BLAS_MANGLE(sgemv,SGEMV)
125 #define SGER_F77 F77_BLAS_MANGLE(sger,SGER)
126 #define STRMV_F77 F77_BLAS_MANGLE(strmv,STRMV)
127 #define SGEMM_F77 F77_BLAS_MANGLE(sgemm,SGEMM)
128 #define SSYMM_F77 F77_BLAS_MANGLE(ssymm,SSYMM)
129 #define SSYRK_F77 F77_BLAS_MANGLE(ssyrk,SSYRK)
130 #define STRMM_F77 F77_BLAS_MANGLE(strmm,STRMM)
131 #define STRSM_F77 F77_BLAS_MANGLE(strsm,STRSM)
132 
133 #ifdef HAVE_TEUCHOS_COMPLEX
134 
135 #define CROTG_F77 F77_BLAS_MANGLE(crotg,CROTG)
136 #define CROT_F77 F77_BLAS_MANGLE(crot,CROT)
137 #define SCASUM_F77 F77_BLAS_MANGLE(scasum,SCASUM)
138 #define CAXPY_F77 F77_BLAS_MANGLE(caxpy,CAXPY)
139 #define CCOPY_F77 F77_BLAS_MANGLE(ccopy,CCOPY)
140 #define CDOT_F77 F77_BLAS_MANGLE(cdotc,CDOTC)
141 #define SCNRM2_F77 F77_BLAS_MANGLE(scnrm2,SCNRM2)
142 #define CSCAL_F77 F77_BLAS_MANGLE(cscal,CSCAL)
143 #define ICAMAX_F77 F77_BLAS_MANGLE(icamax,ICAMAX)
144 #define CGEMV_F77 F77_BLAS_MANGLE(cgemv,CGEMV)
145 #define CGER_F77 F77_BLAS_MANGLE(cgeru,CGERU)
146 #define CTRMV_F77 F77_BLAS_MANGLE(ctrmv,CTRMV)
147 #define CGEMM_F77 F77_BLAS_MANGLE(cgemm,CGEMM)
148 #define CSYMM_F77 F77_BLAS_MANGLE(csymm,CSYMM)
149 #define CSYRK_F77 F77_BLAS_MANGLE(csyrk,CSYRK)
150 #define CTRMM_F77 F77_BLAS_MANGLE(ctrmm,CTRMM)
151 #define CTRSM_F77 F77_BLAS_MANGLE(ctrsm,CTRSM)
152 
153 #endif /* HAVE_TEUCHOS_COMPLEX */
154 
155 
156 /* C) Define the function prototypes for all platforms! */
157 
158 #ifdef __cplusplus
159 extern "C" {
160 #endif
161 
162 
163 /* Double precision BLAS 1 */
164 void PREFIX DROTG_F77(double* da, double* db, double* c, double* s);
165 void PREFIX DROT_F77(const int* n, double* dx, const int* incx, double* dy, const int* incy, double* c, double* s);
166 double PREFIX DASUM_F77(const int* n, const double x[], const int* incx);
167 void PREFIX DAXPY_F77(const int* n, const double* alpha, const double x[], const int* incx, double y[], const int* incy);
168 void PREFIX DCOPY_F77(const int* n, const double *x, const int* incx, double *y, const int* incy);
169 double PREFIX DDOT_F77(const int* n, const double x[], const int* incx, const double y[], const int* incy);
170 double PREFIX DNRM2_F77(const int* n, const double x[], const int* incx);
171 void PREFIX DSCAL_F77(const int* n, const double* alpha, double *x, const int* incx);
172 int PREFIX IDAMAX_F77(const int* n, const double *x, const int* incx);
173 
174 /* Double std::complex precision BLAS 1 */
175 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
176 
177 # if defined(HAVE_COMPLEX_BLAS_PROBLEM)
178 # if defined(HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM)
179 void PREFIX ZDOT_F77(std::complex<double> *ret, const int* n, const std::complex<double> x[], const int* incx, const std::complex<double> y[], const int* incy);
180 # elif defined(HAVE_VECLIB_COMPLEX_BLAS)
181 // no declarations; they're in cblas.h
182 # include <vecLib/cblas.h>
183 # else
184  // mfh 01 Feb 2013: If the code reaches this point, it means that
185  // some complex BLAS routines are broken, but there is no easy
186  // workaround. We deal with this in Teuchos_BLAS.cpp by
187  // reimplementing the offending routines.
188 # endif // HAVE_COMPLEX_BLAS_PROBLEM
189 # else // no problem
190 std::complex<double> PREFIX ZDOT_F77(const int* n, const std::complex<double> x[], const int* incx, const std::complex<double> y[], const int* incy);
191 # endif // defined(HAVE_COMPLEX_BLAS_PROBLEM)
192 
193 double PREFIX ZNRM2_F77(const int* n, const std::complex<double> x[], const int* incx);
194 double PREFIX ZASUM_F77(const int* n, const std::complex<double> x[], const int* incx);
195 void PREFIX ZROTG_F77(std::complex<double>* da, std::complex<double>* db, double* c, std::complex<double>* s);
196 void PREFIX ZROT_F77(const int* n, std::complex<double>* dx, const int* incx, std::complex<double>* dy, const int* incy, double* c, std::complex<double>* s);
197 void PREFIX ZAXPY_F77(const int* n, const std::complex<double>* alpha, const std::complex<double> x[], const int* incx, std::complex<double> y[], const int* incy);
198 void PREFIX ZCOPY_F77(const int* n, const std::complex<double> *x, const int* incx, std::complex<double> *y, const int* incy);
199 void PREFIX ZSCAL_F77(const int* n, const std::complex<double>* alpha, std::complex<double> *x, const int* incx);
200 int PREFIX IZAMAX_F77(const int* n, const std::complex<double> *x, const int* incx);
201 
202 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
203 
204 /* Single precision BLAS 1 */
205 #ifdef HAVE_TEUCHOS_BLASFLOAT
206 # ifdef HAVE_TEUCHOS_BLASFLOAT_APPLE_VECLIB_BUGFIX
207 # include <vecLib/cblas.h>
208 # elif defined(HAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN)
209 double PREFIX SASUM_F77(const int* n, const float x[], const int* incx);
210 double PREFIX SDOT_F77(const int* n, const float x[], const int* incx, const float y[], const int* incy);
211 double PREFIX SNRM2_F77(const int* n, const float x[], const int* incx);
212 # else
213 float PREFIX SASUM_F77(const int* n, const float x[], const int* incx);
214 float PREFIX SDOT_F77(const int* n, const float x[], const int* incx, const float y[], const int* incy);
215 float PREFIX SNRM2_F77(const int* n, const float x[], const int* incx);
216 # endif // which blasfloat
217 #endif // ifdef blasfloat
218 void PREFIX SROTG_F77(float* da, float* db, float* c, float* s);
219 void PREFIX SROT_F77(const int* n, float* dx, const int* incx, float* dy, const int* incy, float* c, float* s);
220 void PREFIX SAXPY_F77(const int* n, const float* alpha, const float x[], const int* incx, float y[], const int* incy);
221 void PREFIX SCOPY_F77(const int* n, const float *x, const int* incx, float *y, const int* incy);
222 void PREFIX SSCAL_F77(const int* n, const float* alpha, float *x, const int* incx);
223 int PREFIX ISAMAX_F77(const int* n, const float *x, const int* incx);
224 
225 /* Single std::complex precision BLAS 1 */
226 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
227 # if defined(HAVE_TEUCHOS_BLASFLOAT)
228 # if defined(HAVE_TEUCHOS_BLASFLOAT_APPLE_VECLIB_BUGFIX)
229 // no declarations; they're in cblas.h
230 # include <vecLib/cblas.h>
231 # elif defined(HAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN)
232 double PREFIX SCASUM_F77(const int* n, const std::complex<float> x[], const int* incx);
233 double PREFIX SCNRM2_F77(const int* n, const std::complex<float> x[], const int* incx);
234 # else
235 float PREFIX SCASUM_F77(const int* n, const std::complex<float> x[], const int* incx);
236 float PREFIX SCNRM2_F77(const int* n, const std::complex<float> x[], const int* incx);
237 # endif // Whether or not we have the veclib bugfix
238 #endif // defined(HAVE_TEUCHOS_BLASFLOAT)
239 
240 #if defined(HAVE_TEUCHOS_BLASFLOAT_APPLE_VECLIB_BUGFIX)
241 // no declarations; they're in cblas.h
242 #include <vecLib/cblas.h>
243 #elif defined(HAVE_COMPLEX_BLAS_PROBLEM) && defined(HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM)
244 void PREFIX CDOT_F77(std::complex<float> *ret, const int* n, const std::complex<float> x[], const int* incx, const std::complex<float> y[], const int* incy);
245 #elif defined(HAVE_TEUCHOS_BLASFLOAT)
246 std::complex<float> PREFIX CDOT_F77(const int* n, const std::complex<float> x[], const int* incx, const std::complex<float> y[], const int* incy);
247 #else
248 // the code is literally in Teuchos_BLAS.cpp
249 #endif
250 
251 void PREFIX CROTG_F77(std::complex<float>* da, std::complex<float>* db, float* c, std::complex<float>* s);
252 void PREFIX CROT_F77(const int* n, std::complex<float>* dx, const int* incx, std::complex<float>* dy, const int* incy, float* c, std::complex<float>* s);
253 void PREFIX CAXPY_F77(const int* n, const std::complex<float>* alpha, const std::complex<float> x[], const int* incx, std::complex<float> y[], const int* incy);
254 void PREFIX CCOPY_F77(const int* n, const std::complex<float> *x, const int* incx, std::complex<float> *y, const int* incy);
255 void PREFIX CSCAL_F77(const int* n, const std::complex<float>* alpha, std::complex<float> *x, const int* incx);
256 int PREFIX ICAMAX_F77(const int* n, const std::complex<float> *x, const int* incx);
257 
258 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
259 
260 /* Double precision BLAS 2 */
261 void PREFIX DGEMV_F77(Teuchos_fcd, const int* m, const int* n, const double* alpha, const double A[], const int* lda,
262  const double x[], const int* incx, const double* beta, double y[], const int* incy);
263 void PREFIX DTRMV_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int *n,
264  const double *a, const int *lda, double *x, const int *incx);
265 void PREFIX DGER_F77(const int *m, const int *n, const double *alpha, const double *x, const int *incx, const double *y,
266  const int *incy, double *a, const int *lda);
267 
268 /* Double precision BLAS 2 */
269 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
270 
271 void PREFIX ZGEMV_F77(Teuchos_fcd, const int* m, const int* n, const std::complex<double>* alpha, const std::complex<double> A[], const int* lda,
272  const std::complex<double> x[], const int* incx, const std::complex<double>* beta, std::complex<double> y[], const int* incy);
273 void PREFIX ZTRMV_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int *n,
274  const std::complex<double> *a, const int *lda, std::complex<double> *x, const int *incx);
275 void PREFIX ZGER_F77(const int *m, const int *n, const std::complex<double> *alpha, const std::complex<double> *x, const int *incx, const std::complex<double> *y,
276  const int *incy, std::complex<double> *a, const int *lda);
277 
278 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
279 
280 /* Single precision BLAS 2 */
281 void PREFIX SGEMV_F77(Teuchos_fcd, const int* m, const int* n, const float* alpha, const float A[], const int* lda,
282  const float x[], const int* incx, const float* beta, float y[], const int* incy);
283 void PREFIX STRMV_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int *n,
284  const float *a, const int *lda, float *x, const int *incx);
285 void PREFIX SGER_F77(const int *m, const int *n, const float *alpha, const float *x, const int *incx, const float *y,
286  const int *incy, float *a, const int *lda);
287 
288 /* Single std::complex precision BLAS 2 */
289 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
290 
291 void PREFIX CGEMV_F77(Teuchos_fcd, const int* m, const int* n, const std::complex<float>* alpha, const std::complex<float> A[], const int* lda,
292  const std::complex<float> x[], const int* incx, const std::complex<float>* beta, std::complex<float> y[], const int* incy);
293 void PREFIX CTRMV_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int *n,
294  const std::complex<float> *a, const int *lda, std::complex<float> *x, const int *incx);
295 void PREFIX CGER_F77(const int *m, const int *n, const std::complex<float> *alpha, const std::complex<float> *x, const int *incx, const std::complex<float> *y,
296  const int *incy, std::complex<float> *a, const int *lda);
297 
298 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
299 
300 /* Double precision BLAS 3 */
301 void PREFIX DGEMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int *
302  n, const int *k, const double *alpha, const double *a, const int *lda,
303  const double *b, const int *ldb, const double *beta, double *c, const int *ldc);
304 void PREFIX DSYMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int * n,
305  const double *alpha, const double *a, const int *lda,
306  const double *b, const int *ldb, const double *beta, double *c, const int *ldc);
307 void PREFIX DSYRK_F77(Teuchos_fcd, Teuchos_fcd, const int *n, const int * k,
308  const double *alpha, const double *a, const int *lda,
309  const double *beta, double *c, const int *ldc);
311  const int *m, const int *n, const double *alpha, const double *a, const int * lda, double *b, const int *ldb);
313  const int *m, const int *n, const double *alpha, const double *a, const int *
314  lda, double *b, const int *ldb);
315 
316 /* Double std::complex precision BLAS 3 */
317 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
318 
319 void PREFIX ZGEMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int *
320  n, const int *k, const std::complex<double> *alpha, const std::complex<double> *a, const int *lda,
321  const std::complex<double> *b, const int *ldb, const std::complex<double> *beta, std::complex<double> *c, const int *ldc);
322 void PREFIX ZSYMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int * n,
323  const std::complex<double> *alpha, const std::complex<double> *a, const int *lda,
324  const std::complex<double> *b, const int *ldb, const std::complex<double> *beta, std::complex<double> *c, const int *ldc);
325 void PREFIX ZSYRK_F77(Teuchos_fcd, Teuchos_fcd, const int *n, const int * k,
326  const std::complex<double> *alpha, const std::complex<double> *a, const int *lda,
327  const std::complex<double> *beta, std::complex<double> *c, const int *ldc);
329  const int *m, const int *n, const std::complex<double> *alpha, const std::complex<double> *a, const int * lda, std::complex<double> *b, const int *ldb);
331  const int *m, const int *n, const std::complex<double> *alpha, const std::complex<double> *a, const int *
332  lda, std::complex<double> *b, const int *ldb);
333 
334 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
335 
336 /* Single precision BLAS 3 */
337 void PREFIX SGEMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int *
338  n, const int *k, const float *alpha, const float *a, const int *lda,
339  const float *b, const int *ldb, const float *beta, float *c, const int *ldc);
340 void PREFIX SSYMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int * n,
341  const float *alpha, const float *a, const int *lda,
342  const float *b, const int *ldb, const float *beta, float *c, const int *ldc);
343 void PREFIX SSYRK_F77(Teuchos_fcd, Teuchos_fcd, const int *n, const int * k,
344  const float *alpha, const float *a, const int *lda,
345  const float *beta, float *c, const int *ldc);
347  const int *m, const int *n, const float *alpha, const float *a, const int * lda, float *b, const int *ldb);
349  const int *m, const int *n, const float *alpha, const float *a, const int *
350  lda, float *b, const int *ldb);
351 
352 /* Single std::complex precision BLAS 3 */
353 
354 #if defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus)
355 
356 void PREFIX CGEMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int *
357  n, const int *k, const std::complex<float> *alpha, const std::complex<float> *a, const int *lda,
358  const std::complex<float> *b, const int *ldb, const std::complex<float> *beta, std::complex<float> *c, const int *ldc);
359 void PREFIX CSYMM_F77(Teuchos_fcd, Teuchos_fcd, const int *m, const int * n,
360  const std::complex<float> *alpha, const std::complex<float> *a, const int *lda,
361  const std::complex<float> *b, const int *ldb, const std::complex<float> *beta, std::complex<float> *c, const int *ldc);
363  const int *m, const int *n, const std::complex<float> *alpha, const std::complex<float> *a, const int * lda, std::complex<float> *b, const int *ldb);
364 void PREFIX CSYRK_F77(Teuchos_fcd, Teuchos_fcd, const int *n, const int * k,
365  const std::complex<float> *alpha, const std::complex<float> *a, const int *lda,
366  const std::complex<float> *beta, std::complex<float> *c, const int *ldc);
368  const int *m, const int *n, const std::complex<float> *alpha, const std::complex<float> *a, const int *
369  lda, std::complex<float> *b, const int *ldb);
370 
371 #endif /* defined(HAVE_TEUCHOS_COMPLEX) && defined(__cplusplus) */
372 
373 #ifdef __cplusplus
374 }
375 #endif
376 
377 /* Don't leave a global macros called PREFIX or Teuchos_fcd laying around */
378 
379 #ifdef PREFIX
380 #undef PREFIX
381 #endif
382 
383 #ifdef Teuchos_fcd
384 #undef Teuchos_fcd
385 #endif
386 
387 #endif /* end of TEUCHOS_BLAS_WRAPPERS_HPP_ */
#define PREFIX
#define STRMM_F77
#define SSCAL_F77
#define DTRMV_F77
#define IDAMAX_F77
#define DROTG_F77
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
#define SROTG_F77
#define SGER_F77
#define STRSM_F77
#define DAXPY_F77
#define SDOT_F77
#define SROT_F77
#define Teuchos_fcd
#define SAXPY_F77
#define DSYMM_F77
#define DGER_F77
#define SSYRK_F77
#define DNRM2_F77
#define DTRMM_F77
#define SGEMM_F77
#define DGEMV_F77
#define SASUM_F77
#define SCOPY_F77
#define DCOPY_F77
#define ISAMAX_F77
#define DSCAL_F77
#define DSYRK_F77
#define SSYMM_F77
#define DTRSM_F77
#define DASUM_F77
#define DDOT_F77
#define SGEMV_F77
#define DGEMM_F77
#define DROT_F77
#define STRMV_F77
#define SNRM2_F77