Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_LAPACK_wrappers.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Teuchos: Common Tools Package
5 // Copyright (2004) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38 //
39 // ***********************************************************************
40 // @HEADER
41 
42 #ifndef _TEUCHOS_LAPACK_WRAPPERS_HPP_
43 #define _TEUCHOS_LAPACK_WRAPPERS_HPP_
44 
45 #include "Teuchos_ConfigDefs.hpp"
46 
52 /* A) Define PREFIX and Teuchos_fcd based on platform. */
53 
54 #if defined(INTEL_CXML)
55 # define PREFIX __stdcall
56 # define Teuchos_fcd const char *, unsigned int
57 #elif defined(INTEL_MKL)
58 # define PREFIX
59 # define Teuchos_fcd const char *
60 #else
61 # define PREFIX
62 # define Teuchos_fcd const char *
63 #endif
64 
65 // in progress - added for EQUED which is a modified char *, not const
66 #if defined(INTEL_CXML)
67 # define PREFIX __stdcall
68 # define Teuchos_nonconst_fcd char *, unsigned int // Need to evaluate unsigned int - CXML deprecated
69 #elif defined(INTEL_MKL)
70 # define PREFIX
71 # define Teuchos_nonconst_fcd char *
72 #else
73 # define PREFIX
74 # define Teuchos_nonconst_fcd char *
75 #endif
76 
77 
78 /* B) Take care of of the link name case */
79 
80 #define DGEQRF_F77 F77_BLAS_MANGLE(dgeqrf,DGEQRF)
81 #define DGEQR2_F77 F77_BLAS_MANGLE(dgeqr2,DGEQR2)
82 #define DGETRF_F77 F77_BLAS_MANGLE(dgetrf,DGETRF)
83 #define DGETRS_F77 F77_BLAS_MANGLE(dgetrs,DGETRS)
84 #define DLASCL_F77 F77_BLAS_MANGLE(dlascl,DLASCL)
85 #define DLASWP_F77 F77_BLAS_MANGLE(dlaswp,DLASWP)
86 #define DGBTRF_F77 F77_BLAS_MANGLE(dgbtrf,DGBTRF)
87 #define DGBTRS_F77 F77_BLAS_MANGLE(dgbtrs,DGBTRS)
88 #define DGTTRF_F77 F77_BLAS_MANGLE(dgttrf,DGTTRF)
89 #define DGTTRS_F77 F77_BLAS_MANGLE(dgttrs,DGTTRS)
90 #define DPTTRF_F77 F77_BLAS_MANGLE(dpttrf,DPTTRF)
91 #define DPTTRS_F77 F77_BLAS_MANGLE(dpttrs,DPTTRS)
92 #define DGETRI_F77 F77_BLAS_MANGLE(dgetri,DGETRI)
93 #define DGERFS_F77 F77_BLAS_MANGLE(dgerfs,DGERFS)
94 #define DGBRFS_F77 F77_BLAS_MANGLE(dgbrfs,DGBRFS)
95 #define DLATRS_F77 F77_BLAS_MANGLE(dlatrs,DLATRS)
96 #define DGECON_F77 F77_BLAS_MANGLE(dgecon,DGECON)
97 #define DGBCON_F77 F77_BLAS_MANGLE(dgbcon,DGBCON)
98 #define DLANGB_F77 F77_BLAS_MANGLE(dlangb,DLANGB)
99 #define DGESVX_F77 F77_BLAS_MANGLE(dgesvx,DGESVX)
100 #define DGESV_F77 F77_BLAS_MANGLE(dgesv,DGESV)
101 #define DGEEQU_F77 F77_BLAS_MANGLE(dgeequ,DGEEQU)
102 #define DGBEQU_F77 F77_BLAS_MANGLE(dgbequ,DGBEQU)
103 #define DSYTRD_F77 F77_BLAS_MANGLE(dsytrd,DSYTRD)
104 #define DPOTRF_F77 F77_BLAS_MANGLE(dpotrf,DPOTRF)
105 #define DPOTRS_F77 F77_BLAS_MANGLE(dpotrs,DPOTRS)
106 #define DPOTRI_F77 F77_BLAS_MANGLE(dpotri,DPOTRI)
107 #define DPOCON_F77 F77_BLAS_MANGLE(dpocon,DPOCON)
108 #define DPOSV_F77 F77_BLAS_MANGLE(dposv,DPOSV)
109 #define DPOEQU_F77 F77_BLAS_MANGLE(dpoequ,DPOEQU)
110 #define DPORFS_F77 F77_BLAS_MANGLE(dporfs,DPORFS)
111 #define DPOSVX_F77 F77_BLAS_MANGLE(dposvx,DPOSVX)
112 #define DTRTRS_F77 F77_BLAS_MANGLE(dtrtrs,DTRTRS)
113 #define DTRTRI_F77 F77_BLAS_MANGLE(dtrtri,DTRTRI)
114 #define DLAMCH_F77 F77_BLAS_MANGLE(dlamch,DLAMCH)
115 #define DGELS_F77 F77_BLAS_MANGLE(dgels,DGELS)
116 #define DGELSS_F77 F77_BLAS_MANGLE(dgelss,DGELSS)
117 #define DGGLSE_F77 F77_BLAS_MANGLE(dgglse,DGGLSE)
118 #define DGEEV_F77 F77_BLAS_MANGLE(dgeev,DGEEV)
119 #define DGESVD_F77 F77_BLAS_MANGLE(dgesvd,DGESVD)
120 #define DGGEV_F77 F77_BLAS_MANGLE(dggev,DGGEV)
121 #define DGGES_F77 F77_BLAS_MANGLE(dgges,DGGES)
122 #define DTRSEN_F77 F77_BLAS_MANGLE(dtrsen,DTRSEN)
123 #define DTGSEN_F77 F77_BLAS_MANGLE(dtgsen,DTGSEN)
124 #define DGEEVX_F77 F77_BLAS_MANGLE(dgeevx,DGEEVX)
125 #define DGGEVX_F77 F77_BLAS_MANGLE(dggevx,DGGEVX)
126 #define DGEHRD_F77 F77_BLAS_MANGLE(dgehrd,DGEHRD)
127 #define DHSEQR_F77 F77_BLAS_MANGLE(dhseqr,DHSEQR)
128 #define DORGHR_F77 F77_BLAS_MANGLE(dorghr,DORGHR)
129 #define DORGQR_F77 F77_BLAS_MANGLE(dorgqr,DORGQR)
130 #define DORMHR_F77 F77_BLAS_MANGLE(dormhr,DORMHR)
131 #define DORMQR_F77 F77_BLAS_MANGLE(dormqr,DORMQR)
132 #define DORM2R_F77 F77_BLAS_MANGLE(dorm2r,DORM2R)
133 #define DTREVC_F77 F77_BLAS_MANGLE(dtrevc,DTREVC)
134 #define DTREXC_F77 F77_BLAS_MANGLE(dtrexc,DTREXC)
135 #define DTGEVC_F77 F77_BLAS_MANGLE(dtgevc,DTGEVC)
136 #define DGEES_F77 F77_BLAS_MANGLE(dgees,DGEES)
137 #define DSPEV_F77 F77_BLAS_MANGLE(dspev,DSPEV)
138 #define DSYEV_F77 F77_BLAS_MANGLE(dsyev,DSYEV)
139 #define DSYGV_F77 F77_BLAS_MANGLE(dsygv,DSYGV)
140 #define DSTEQR_F77 F77_BLAS_MANGLE(dsteqr,DSTEQR)
141 #define DPTEQR_F77 F77_BLAS_MANGLE(dpteqr,DPTEQR)
142 #define DLAPY2_F77 F77_BLAS_MANGLE(dlapy2,DLAPY2)
143 #define DLARND_F77 F77_BLAS_MANGLE(dlarnd,DLARND)
144 #define DLARNV_F77 F77_BLAS_MANGLE(dlarnv,DLARNV)
145 #define DGEBAL_F77 F77_BLAS_MANGLE(dgebal,DGEBAL)
146 #define DGEBAK_F77 F77_BLAS_MANGLE(dgebak,DGEBAK)
147 #define DLARTG_F77 F77_BLAS_MANGLE(dlartg,DLARTG)
148 #define DLARFG_F77 F77_BLAS_MANGLE(dlarfg,DLARFG)
149 #define ILAENV_F77 F77_BLAS_MANGLE(ilaenv,ILAENV)
150 #define DGEQP3_F77 F77_BLAS_MANGLE(dgeqp3,DGEQP3)
151 
152 #ifdef HAVE_TEUCHOS_COMPLEX
153 
154 #define ZGEQRF_F77 F77_BLAS_MANGLE(zgeqrf,ZGEQRF)
155 #define ZGEQR2_F77 F77_BLAS_MANGLE(zgeqr2,ZGEQR2)
156 #define ZUNGQR_F77 F77_BLAS_MANGLE(zungqr,ZUNGQR)
157 #define ZUNMQR_F77 F77_BLAS_MANGLE(zunmqr,ZUNMQR)
158 #define ZUNM2R_F77 F77_BLAS_MANGLE(zunm2r,ZUNM2R)
159 #define ZGETRF_F77 F77_BLAS_MANGLE(zgetrf,ZGETRF)
160 #define ZGETRS_F77 F77_BLAS_MANGLE(zgetrs,ZGETRS)
161 #define ZLASCL_F77 F77_BLAS_MANGLE(zlascl,ZLASCL)
162 #define ZLASWP_F77 F77_BLAS_MANGLE(zlaswp,ZLASWP)
163 #define ZGBTRF_F77 F77_BLAS_MANGLE(zgbtrf,ZGBTRF)
164 #define ZGBTRS_F77 F77_BLAS_MANGLE(zgbtrs,ZGBTRS)
165 #define ZGTTRF_F77 F77_BLAS_MANGLE(zgttrf,ZGTTRF)
166 #define ZGTTRS_F77 F77_BLAS_MANGLE(zgttrs,ZGTTRS)
167 #define ZPTTRF_F77 F77_BLAS_MANGLE(zpttrf,ZPTTRF)
168 #define ZPTTRS_F77 F77_BLAS_MANGLE(zpttrs,ZPTTRS)
169 #define ZGETRI_F77 F77_BLAS_MANGLE(zgetri,ZGETRI)
170 #define ZGERFS_F77 F77_BLAS_MANGLE(zgerfs,ZGERFS)
171 #define ZGBRFS_F77 F77_BLAS_MANGLE(zgbrfs,ZGBRFS)
172 #define ZLATRS_F77 F77_BLAS_MANGLE(zlatrs,ZLATRS)
173 #define ZGECON_F77 F77_BLAS_MANGLE(zgecon,ZGECON)
174 #define ZGBCON_F77 F77_BLAS_MANGLE(zgbcon,ZGBCON)
175 #define ZLANGB_F77 F77_BLAS_MANGLE(zlangb,ZLANGB)
176 #define ZGESVX_F77 F77_BLAS_MANGLE(zgesvx,ZGESVX)
177 #define ZGESV_F77 F77_BLAS_MANGLE(zgesv,ZGESV)
178 #define ZGEEQU_F77 F77_BLAS_MANGLE(zgeequ,ZGEEQU)
179 #define ZGBEQU_F77 F77_BLAS_MANGLE(zgbequ,ZGBEQU)
180 #define ZPOTRF_F77 F77_BLAS_MANGLE(zpotrf,ZPOTRF)
181 #define ZPOTRS_F77 F77_BLAS_MANGLE(zpotrs,ZPOTRS)
182 #define ZPOTRI_F77 F77_BLAS_MANGLE(zpotri,ZPOTRI)
183 #define ZPOCON_F77 F77_BLAS_MANGLE(zpocon,ZPOCON)
184 #define ZPOSV_F77 F77_BLAS_MANGLE(zposv,ZPOSV)
185 #define ZPOEQU_F77 F77_BLAS_MANGLE(zpoequ,ZPOEQU)
186 #define ZPORFS_F77 F77_BLAS_MANGLE(zporfs,ZPORFS)
187 #define ZPOSVX_F77 F77_BLAS_MANGLE(zposvx,ZPOSVX)
188 #define ZTRTRS_F77 F77_BLAS_MANGLE(ztrtrs,ZTRTRS)
189 #define ZTRTRI_F77 F77_BLAS_MANGLE(ztrtri,ZTRTRI)
190 #define ZGELS_F77 F77_BLAS_MANGLE(zgels,ZGELS)
191 #define ZGELSS_F77 F77_BLAS_MANGLE(zgelss,ZGELSS)
192 //#define ZGGLSE_F77 F77_BLAS_MANGLE(zgglse,ZGGLSE)
193 #define ZGEEV_F77 F77_BLAS_MANGLE(zgeev,ZGEEV)
194 #define ZGESVD_F77 F77_BLAS_MANGLE(zgesvd,ZGESVD)
195 #define ZGGEV_F77 F77_BLAS_MANGLE(zggev,ZGGEV)
196 #define ZGEEVX_F77 F77_BLAS_MANGLE(zgeevx,ZGEEVX)
197 #define ZGGEVX_F77 F77_BLAS_MANGLE(zggevx,ZGGEVX)
198 #define ZGEHRD_F77 F77_BLAS_MANGLE(zgehrd,ZGEHRD)
199 #define ZHSEQR_F77 F77_BLAS_MANGLE(zhseqr,ZHSEQR)
200 #define ZTREVC_F77 F77_BLAS_MANGLE(ztrevc,ZTREVC)
201 #define ZTREXC_F77 F77_BLAS_MANGLE(ztrexc,ZTREXC)
202 #define ZGEES_F77 F77_BLAS_MANGLE(zgees,ZGEES)
203 #define ZSTEQR_F77 F77_BLAS_MANGLE(zsteqr,ZSTEQR)
204 #define ZPTEQR_F77 F77_BLAS_MANGLE(zpteqr,ZPTEQR)
205 #define ZHEEV_F77 F77_BLAS_MANGLE(zheev,ZHEEV)
206 #define ZHEGV_F77 F77_BLAS_MANGLE(zhegv,ZHEGV)
207 #define ZLARTG_F77 F77_BLAS_MANGLE(zlartg,ZLARTG)
208 #define ZLARFG_F77 F77_BLAS_MANGLE(zlarfg,ZLARFG)
209 #define ZGEBAL_F77 F77_BLAS_MANGLE(zgebal,ZGEBAL)
210 #define ZGEBAK_F77 F77_BLAS_MANGLE(zgebak,ZGEBAK)
211 #define ZLARND_F77 F77_BLAS_MANGLE(zlarnd,ZLARND)
212 #define ZLARNV_F77 F77_BLAS_MANGLE(zlarnv,ZLARNV)
213 #define ZGEQP3_F77 F77_BLAS_MANGLE(zgeqp3,ZGEQP3)
214 
215 #endif /* HAVE_TEUCHOS_COMPLEX */
216 
217 #define SGEQRF_F77 F77_BLAS_MANGLE(sgeqrf,SGEQRF)
218 #define SGEQR2_F77 F77_BLAS_MANGLE(sgeqr2,SGEQR2)
219 #define SGETRF_F77 F77_BLAS_MANGLE(sgetrf,SGETRF)
220 #define SGETRS_F77 F77_BLAS_MANGLE(sgetrs,SGETRS)
221 #define SLASCL_F77 F77_BLAS_MANGLE(slascl,SLASCL)
222 #define SLASWP_F77 F77_BLAS_MANGLE(slaswp,SLASWP)
223 #define SGBTRF_F77 F77_BLAS_MANGLE(sgbtrf,SGBTRF)
224 #define SGBTRS_F77 F77_BLAS_MANGLE(sgbtrs,SGBTRS)
225 #define SGTTRF_F77 F77_BLAS_MANGLE(sgttrf,SGTTRF)
226 #define SGTTRS_F77 F77_BLAS_MANGLE(sgttrs,SGTTRS)
227 #define SPTTRF_F77 F77_BLAS_MANGLE(spttrf,SPTTRF)
228 #define SPTTRS_F77 F77_BLAS_MANGLE(spttrs,SPTTRS)
229 #define SGETRI_F77 F77_BLAS_MANGLE(sgetri,SGETRI)
230 #define SGERFS_F77 F77_BLAS_MANGLE(sgerfs,SGERFS)
231 #define SGBRFS_F77 F77_BLAS_MANGLE(sgbrfs,SGBRFS)
232 #define SLATRS_F77 F77_BLAS_MANGLE(slatrs,SLATRS)
233 #define SGECON_F77 F77_BLAS_MANGLE(sgecon,SGECON)
234 #define SGBCON_F77 F77_BLAS_MANGLE(sgbcon,SGBCON)
235 #define SLANGB_F77 F77_BLAS_MANGLE(slangb,SLANGB)
236 #define SGESVX_F77 F77_BLAS_MANGLE(sgesvx,SGESVX)
237 #define SGESV_F77 F77_BLAS_MANGLE(sgesv,SGESV)
238 #define SGEEQU_F77 F77_BLAS_MANGLE(sgeequ,SGEEQU)
239 #define SGBEQU_F77 F77_BLAS_MANGLE(sgbequ,SGBEQU)
240 #define SSYTRD_F77 F77_BLAS_MANGLE(ssytrd,SSYTRD)
241 #define SPOTRF_F77 F77_BLAS_MANGLE(spotrf,SPOTRF)
242 #define SPOTRS_F77 F77_BLAS_MANGLE(spotrs,SPOTRS)
243 #define SPOTRI_F77 F77_BLAS_MANGLE(spotri,SPOTRI)
244 #define SPOCON_F77 F77_BLAS_MANGLE(spocon,SPOCON)
245 #define SPOSV_F77 F77_BLAS_MANGLE(sposv,SPOSV)
246 #define SPOEQU_F77 F77_BLAS_MANGLE(spoequ,SPOEQU)
247 #define SPORFS_F77 F77_BLAS_MANGLE(sporfs,SPORFS)
248 #define SPOSVX_F77 F77_BLAS_MANGLE(sposvx,SPOSVX)
249 #define STRTRS_F77 F77_BLAS_MANGLE(strtrs,STRTRS)
250 #define STRTRI_F77 F77_BLAS_MANGLE(strtri,STRTRI)
251 #define SGELS_F77 F77_BLAS_MANGLE(sgels,SGELS)
252 #define SGELSS_F77 F77_BLAS_MANGLE(sgelss,SGELSS)
253 #define SGGLSE_F77 F77_BLAS_MANGLE(sgglse,SGGLSE)
254 #define SGEEV_F77 F77_BLAS_MANGLE(sgeev,SGEEV)
255 #define SGESVD_F77 F77_BLAS_MANGLE(sgesvd,SGESVD)
256 #define SGGEV_F77 F77_BLAS_MANGLE(sggev,SGGEV)
257 #define SGGES_F77 F77_BLAS_MANGLE(sgges,SGGES)
258 #define STRSEN_F77 F77_BLAS_MANGLE(strsen,STRSEN)
259 #define STGSEN_F77 F77_BLAS_MANGLE(stgsen,STGSEN)
260 #define SGEEVX_F77 F77_BLAS_MANGLE(sgeevx,SGEEVX)
261 #define SGGEVX_F77 F77_BLAS_MANGLE(sggevx,SGGEVX)
262 #define SGEHRD_F77 F77_BLAS_MANGLE(sgehrd,SGEHRD)
263 #define SHSEQR_F77 F77_BLAS_MANGLE(shseqr,SHSEQR)
264 #define SORGHR_F77 F77_BLAS_MANGLE(sorghr,SORGHR)
265 #define SORGQR_F77 F77_BLAS_MANGLE(sorgqr,SORGQR)
266 #define SORMHR_F77 F77_BLAS_MANGLE(sormhr,SORMHR)
267 #define SORMQR_F77 F77_BLAS_MANGLE(sormqr,SORMQR)
268 #define SORM2R_F77 F77_BLAS_MANGLE(sorm2r,SORM2R)
269 #define STREVC_F77 F77_BLAS_MANGLE(strevc,STREVC)
270 #define STREXC_F77 F77_BLAS_MANGLE(strexc,STREXC)
271 #define STGEVC_F77 F77_BLAS_MANGLE(stgevc,STGEVC)
272 #define SLAMCH_F77 F77_BLAS_MANGLE(slamch,SLAMCH)
273 #define SGEES_F77 F77_BLAS_MANGLE(sgees,SGEES)
274 #define SSPEV_F77 F77_BLAS_MANGLE(sspev,SSPEV)
275 #define SSYEV_F77 F77_BLAS_MANGLE(ssyev,SSYEV)
276 #define SSYGV_F77 F77_BLAS_MANGLE(ssygv,SSYGV)
277 #define SSTEQR_F77 F77_BLAS_MANGLE(ssteqr,SSTEQR)
278 #define SPTEQR_F77 F77_BLAS_MANGLE(spteqr,SPTEQR)
279 #ifdef HAVE_TEUCHOS_BLASFLOAT
280  #define SLAPY2_F77 F77_BLAS_MANGLE(slapy2,SLAPY2)
281 #endif
282 #define SLARTG_F77 F77_BLAS_MANGLE(slartg,SLARTG)
283 #define SLARFG_F77 F77_BLAS_MANGLE(slarfg,SLARFG)
284 #define SGEBAL_F77 F77_BLAS_MANGLE(sgebal,SGEBAL)
285 #define SGEBAK_F77 F77_BLAS_MANGLE(sgebak,SGEBAK)
286 #define SLARND_F77 F77_BLAS_MANGLE(slarnd,SLARND)
287 #define SLARNV_F77 F77_BLAS_MANGLE(slarnv,SLARNV)
288 #define SGEQP3_F77 F77_BLAS_MANGLE(sgeqp3,SGEQP3)
289 
290 #ifdef HAVE_TEUCHOS_COMPLEX
291 
292 #define CGEQRF_F77 F77_BLAS_MANGLE(cgeqrf,CGEQRF)
293 #define CGEQR2_F77 F77_BLAS_MANGLE(cgeqr2,CGEQR2)
294 #define CUNGQR_F77 F77_BLAS_MANGLE(cungqr,CUNGQR)
295 #define CUNMQR_F77 F77_BLAS_MANGLE(cunmqr,CUNMQR)
296 #define CUNM2R_F77 F77_BLAS_MANGLE(cunm2r,CUNM2R)
297 #define CGETRF_F77 F77_BLAS_MANGLE(cgetrf,CGETRF)
298 #define CGETRS_F77 F77_BLAS_MANGLE(cgetrs,CGETRS)
299 #define CLASCL_F77 F77_BLAS_MANGLE(clascl,CLASCL)
300 #define CLASWP_F77 F77_BLAS_MANGLE(claswp,CLASWP)
301 #define CGBTRF_F77 F77_BLAS_MANGLE(cgbtrf,CGBTRF)
302 #define CGBTRS_F77 F77_BLAS_MANGLE(cgbtrs,CGBTRS)
303 #define CGTTRF_F77 F77_BLAS_MANGLE(cgttrf,CGTTRF)
304 #define CGTTRS_F77 F77_BLAS_MANGLE(cgttrs,CGTTRS)
305 #define CPTTRF_F77 F77_BLAS_MANGLE(cpttrf,CPTTRF)
306 #define CPTTRS_F77 F77_BLAS_MANGLE(cpttrs,CPTTRS)
307 #define CGETRI_F77 F77_BLAS_MANGLE(cgetri,CGETRI)
308 #define CGERFS_F77 F77_BLAS_MANGLE(cgerfs,CGERFS)
309 #define CGBRFS_F77 F77_BLAS_MANGLE(cgbrfs,CGBRFS)
310 #define CLATRS_F77 F77_BLAS_MANGLE(clatrs,CLATRS)
311 #define CGECON_F77 F77_BLAS_MANGLE(cgecon,CGECON)
312 #define CGBCON_F77 F77_BLAS_MANGLE(cgbcon,CGBCON)
313 #define CLANGB_F77 F77_BLAS_MANGLE(clangb,CLANGB)
314 #define CGESVX_F77 F77_BLAS_MANGLE(cgesvx,CGESVX)
315 #define CGESV_F77 F77_BLAS_MANGLE(cgesv,CGESV)
316 #define CGEEQU_F77 F77_BLAS_MANGLE(cgeequ,CGEEQU)
317 #define CGBEQU_F77 F77_BLAS_MANGLE(cgbequ,CGBEQU)
318 #define CPOTRF_F77 F77_BLAS_MANGLE(cpotrf,CPOTRF)
319 #define CPOTRS_F77 F77_BLAS_MANGLE(cpotrs,CPOTRS)
320 #define CPOTRI_F77 F77_BLAS_MANGLE(cpotri,CPOTRI)
321 #define CPOCON_F77 F77_BLAS_MANGLE(cpocon,CPOCON)
322 #define CPOSV_F77 F77_BLAS_MANGLE(cposv,CPOSV)
323 #define CPOEQU_F77 F77_BLAS_MANGLE(cpoequ,CPOEQU)
324 #define CPORFS_F77 F77_BLAS_MANGLE(cporfs,CPORFS)
325 #define CPOSVX_F77 F77_BLAS_MANGLE(cposvx,CPOSVX)
326 #define CTRTRS_F77 F77_BLAS_MANGLE(ctrtrs,CTRTRS)
327 #define CTRTRI_F77 F77_BLAS_MANGLE(ctrtri,CTRTRI)
328 #define CGELS_F77 F77_BLAS_MANGLE(cgels,CGELS)
329 #define CGELSS_F77 F77_BLAS_MANGLE(cgelss,CGELSS)
330 //#define CGGLSE_F77 F77_BLAS_MANGLE(cgglse,CGGLSE)
331 #define CGEEV_F77 F77_BLAS_MANGLE(cgeev,CGEEV)
332 #define CGESVD_F77 F77_BLAS_MANGLE(cgesvd,CGESVD)
333 #define CGGEV_F77 F77_BLAS_MANGLE(cggev,CGGEV)
334 #define CGEEVX_F77 F77_BLAS_MANGLE(cgeevx,CGEEVX)
335 #define CGGEVX_F77 F77_BLAS_MANGLE(cggevx,CGGEVX)
336 #define CGEHRD_F77 F77_BLAS_MANGLE(cgehrd,CGEHRD)
337 #define CHSEQR_F77 F77_BLAS_MANGLE(chseqr,CHSEQR)
338 #define CTREVC_F77 F77_BLAS_MANGLE(ctrevc,CTREVC)
339 #define CTREXC_F77 F77_BLAS_MANGLE(ctrexc,CTREXC)
340 #define CGEES_F77 F77_BLAS_MANGLE(cgees,CGEES)
341 #define CSTEQR_F77 F77_BLAS_MANGLE(csteqr,CSTEQR)
342 #define CPTEQR_F77 F77_BLAS_MANGLE(cpteqr,CPTEQR)
343 #define CHEEV_F77 F77_BLAS_MANGLE(cheev,CHEEV)
344 #define CHEGV_F77 F77_BLAS_MANGLE(chegv,CHEGV)
345 #define CLARTG_F77 F77_BLAS_MANGLE(clartg,CLARTG)
346 #define CLARFG_F77 F77_BLAS_MANGLE(clarfg,CLARFG)
347 #define CGEBAL_F77 F77_BLAS_MANGLE(cgebal,CGEBAL)
348 #define CGEBAK_F77 F77_BLAS_MANGLE(cgebak,CGEBAK)
349 #define CLARND_F77 F77_BLAS_MANGLE(clarnd,CLARND)
350 #define CLARNV_F77 F77_BLAS_MANGLE(clarnv,CLARNV)
351 #define CGEQP3_F77 F77_BLAS_MANGLE(cgeqp3,CGEQP3)
352 
353 #endif /* HAVE_TEUCHOS_COMPLEX */
354 
355 
356 /* C) Define the function prototypes for all platforms! */
357 
358 #ifdef __cplusplus
359 extern "C" {
360 #endif
361 
362 // Double precision LAPACK linear solvers
363 
364 void PREFIX DGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, double* a, const int* lda, double* b, const int* ldb, double* work, const int* lwork, int* info);
365 void PREFIX DGELSS_F77(const int* m, const int* n, const int* nrhs, double* a, const int* lda, double* b, const int* ldb, double* s, const double* rcond, int* rank, double* work, const int* lwork, int* info);
366 void PREFIX DGGLSE_F77(const int* m, const int* n, const int* p, double* a, const int* lda, double* b, const int* ldb, double* c, double* d, double* x, double* work, const int* lwork, int* info);
367 void PREFIX DGEQRF_F77(const int* m, const int* n, double* a, const int* lda, double* tau, double* work, const int* lwork, int* info);
368 void PREFIX DGEQR2_F77(const int* const m, const int* const n, double a[], const int* const lda, double tau[], double work[], int* const info);
369 void PREFIX DGETRF_F77(const int* m, const int* n, double* a, const int* lda, int* ipiv, int* info);
370 void PREFIX DGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const double* a, const int* lda,const int* ipiv, double* x , const int* ldx, int* info);
371 void PREFIX DLASCL_F77(Teuchos_fcd, const int* kl, const int* ku, const double* cfrom, const double* cto, const int* m, const int* n, const double* a, const int* lda, int* info);
372 void PREFIX DLASWP_F77(const int* N, double A[], const int* LDA, const int* K1, const int* K2, const int IPIV[], const int* INCX);
373 void PREFIX DGBTRF_F77(const int* m, const int* n, const int* kl, const int* ku, double* a, const int* lda, int* ipiv, int* info);
374 void PREFIX DGBTRS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const double* a, const int* lda, const int* ipiv, double* x, const int* ldx, int* info);
375 void PREFIX DGTTRF_F77(const int* n, double* dl, double* d, double* du, double* du2, int* ipiv, int* info);
376 void PREFIX DGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const double* dl, const double* d, const double* du, const double* du2, const int* ipiv, double* x , const int* ldx, int* info);
377 void PREFIX DPTTRF_F77(const int* n, double* d, double* e, int* info);
378 void PREFIX DPTTRS_F77(const int* n, const int* nrhs, const double* d, const double* e, double* x , const int* ldx, int* info);
379 void PREFIX DGETRI_F77(const int* n, double* a, const int* lda, const int* ipiv, double* work , const int* lwork, int* info);
380 void PREFIX DLATRS_F77(Teuchos_fcd UPLO, Teuchos_fcd TRANS, Teuchos_fcd DIAG, Teuchos_fcd NORMIN, const int* N, double* A, const int* LDA, double* X, double* SCALE, double* CNORM, int* INFO);
381 void PREFIX DGECON_F77(Teuchos_fcd norm, const int* n, const double* a, const int* lda, const double* anorm, double* rcond, double* work, int* iwork, int* info);
382 void PREFIX DGBCON_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const double* a, const int* lda, int* IPIV, const double* anorm, double* rcond, double* work, int* iwork, int* info);
383 double PREFIX DLANGB_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const double* a, const int* lda, double* work);
384 void PREFIX DGESV_F77(const int* n, const int* nrhs, double* a, const int* lda, int* ipiv, double* x , const int* ldx, int* info);
385 void PREFIX DGEEQU_F77(const int* m, const int* n, const double* a, const int* lda, double* r, double* c, double* rowcnd, double* colcnd, double* amax, int* info);
386 void PREFIX DGBEQU_F77(const int* m, const int* n, const int* kl, const int* ku, const double* a, const int* lda, double* r, double* c, double* rowcnd, double* colcnd, double* amax, int* info);
387 void PREFIX DGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const double* a, const int* lda, const double* af, const int* ldaf, const int* ipiv, const double* b, const int* ldb, double* x, const int* ldx, double* ferr, double* berr, double* work, int* iwork, int* info);
388 void PREFIX DGBRFS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const double* a, const int* lda, const double* af, const int* ldaf, const int* ipiv, const double* b, const int* ldb, double* x, const int* ldx, double* ferr, double* berr, double* work, int* iwork, int* info);
389 void PREFIX DGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, double* af, const int* ldaf, int* ipiv, Teuchos_nonconst_fcd, double* r,
390 double* c, double* b, const int* ldb, double* x, const int* ldx, double* rcond, double* ferr, double* berr, double* work, int* iwork, int* info);
391 void PREFIX DSYTRD_F77(Teuchos_fcd, const int* n, double* a, const int* lda, double* D, double* E, double* tau, double* work, const int* lwork, int* info);
392 void PREFIX DPOTRF_F77(Teuchos_fcd, const int* n, double* a, const int* lda, int* info);
393 void PREFIX DPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const double* a, const int* lda, double*x , const int* ldx, int* info);
394 void PREFIX DPOTRI_F77(Teuchos_fcd, const int* n, double* a, const int* lda, int* info);
395 void PREFIX DPOCON_F77(Teuchos_fcd, const int* n, const double* a, const int* lda, const double* anorm, double* rcond, double* work, int* iwork, int* info);
396 void PREFIX DPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, double*x , const int* ldx, int* info);
397 void PREFIX DPOEQU_F77(const int* n, const double* a, const int* lda, double* s, double* scond, double* amax, int* info);
398 void PREFIX DPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, const double* af, const int* ldaf, const double* b, const int* ldb, double* x, const int* ldx, double* ferr, double* berr, double* work, int* iwork, int* info);
399 void PREFIX DPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, double* af, const int* ldaf, Teuchos_nonconst_fcd, double* s, double* b, const int* ldb, double* x, const int* ldx, double* rcond, double* ferr, double* berr, double* work, int* iwork, int* info);
400 void PREFIX DTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, const double* a, const int* lda, double* b, const int* ldb, int* info);
401 void PREFIX DTRTRI_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const double* a, const int* lda, int* info);
402 void PREFIX DGEQP3_F77( const int *M, const int *N, double *A, const int *LDA, int *JPVT, double *TAU, double *WORK, const int *LWORK, int *INFO );
403 
404 // Single precision LAPACK linear solvers
405 
406 void PREFIX SGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, float* a, const int* lda, float* b, const int* ldb, float* work, const int* lwork, int* info);
407 void PREFIX SGELSS_F77(const int* m, const int* n, const int* nrhs, float* a, const int* lda, float* b, const int* ldb, float* s, const float* rcond, int* rank, float* work, const int* lwork, int* info);
408 void PREFIX SGGLSE_F77(const int* m, const int* n, const int* p, float* a, const int* lda, float* b, const int* ldb, float* c, float* d, float* x, float* work, const int* lwork, int* info);
409 void PREFIX SGEQRF_F77(const int* m, const int* n, float* a, const int* lda, float* tau, float* work, const int* lwork, int* info);
410 void PREFIX SGEQR2_F77(const int* const m, const int* const n, float a[], const int* const lda, float tau[], float work[], int* const info);
411 void PREFIX SGETRF_F77(const int* m, const int* n, float* a, const int* lda, int* ipiv, int* info);
412 void PREFIX SGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const float* a, const int* lda, const int* ipiv, float* x , const int* ldx, int* info);
413 void PREFIX SLASCL_F77(Teuchos_fcd, const int* kl, const int* ku, const float* cfrom, const float* cto, const int* m, const int* n, const float* a, const int* lda, int* info);
414 void PREFIX SLASWP_F77(const int* N, float A[], const int* LDA, const int* K1, const int* K2, const int IPIV[], const int* INCX);
415 void PREFIX SGBTRF_F77(const int* m, const int* n, const int* kl, const int* ku, float* a, const int* lda, int* ipiv, int* info);
416 void PREFIX SGBTRS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const float* a, const int* lda, const int* ipiv, float* x, const int* ldx, int* info);
417 void PREFIX SGTTRF_F77(const int* n, float* dl, float* d, float* du, float* du2, int* ipiv, int* info);
418 void PREFIX SGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const float* dl, const float* d, const float* du, const float* du2, const int* ipiv, float* x , const int* ldx, int* info);
419 void PREFIX SPTTRF_F77(const int* n, float* d, float* e, int* info);
420 void PREFIX SPTTRS_F77(const int* n, const int* nrhs, const float* d, const float* e, float* x , const int* ldx, int* info);
421 void PREFIX SGETRI_F77(const int* n, float* a, const int* lda, const int* ipiv, float* work , const int* lwork, int* info);
422 void PREFIX SLATRS_F77(Teuchos_fcd UPLO, Teuchos_fcd TRANS, Teuchos_fcd DIAG, Teuchos_fcd NORMIN, const int* N, float* A, const int* LDA, float* X, float* SCALE, float* CNORM, int* INFO);
423 void PREFIX SGECON_F77(Teuchos_fcd norm, const int* n, const float* a, const int* lda, const float* anorm, float* rcond, float* work, int* iwork, int* info);
424 void PREFIX SGBCON_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const float* a, const int* lda, int* IPIV, const float* anorm, float* rcond, float* work, int* iwork, int* info);
425 float PREFIX SLANGB_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const float* a, const int* lda, float* work);
426 void PREFIX SGESV_F77(const int* n, const int* nrhs, float* a, const int* lda, int* ipiv, float* x , const int* ldx, int* info);
427 void PREFIX SGEEQU_F77(const int* m, const int* n, const float* a, const int* lda, float* r, float* c, float* rowcnd, float* colcnd, float* amax, int* info);
428 void PREFIX SGBEQU_F77(const int* m, const int* n, const int* kl, const int* ku, const float* a, const int* lda, float* r, float* c, float* rowcnd, float* colcnd, float* amax, int* info);
429 void PREFIX SGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const float* a, const int* lda, const float* af, const int* ldaf, const int* ipiv, const float* b, const int* ldb, float* x, const int* ldx, float* ferr, float* berr, float* work, int* iwork, int* info);
430 void PREFIX SGBRFS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const float* a, const int* lda, const float* af, const int* ldaf, const int* ipiv, const float* b, const int* ldb, float* x, const int* ldx, float* ferr, float* berr, float* work, int* iwork, int* info);
431 void PREFIX SGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, float* af, const int* ldaf, int* ipiv, Teuchos_nonconst_fcd, float* r,
432 float* c, float* b, const int* ldb, float* x, const int* ldx, float* rcond, float* ferr, float* berr, float* work, int* iwork, int* info);
433 void PREFIX SSYTRD_F77(Teuchos_fcd, const int* n, float* a, const int* lda, float* D, float* E, float* tau, float* work, const int* lwork, int* info);
434 void PREFIX SPOTRF_F77(Teuchos_fcd, const int* n, float* a, const int* lda, int* info);
435 void PREFIX SPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const float* a, const int* lda, float*x , const int* ldx, int* info);
436 void PREFIX SPOTRI_F77(Teuchos_fcd, const int* n, float* a, const int* lda, int* info);
437 void PREFIX SPOCON_F77(Teuchos_fcd, const int* n, const float* a, const int* lda, const float* anorm, float* rcond, float* work, int* iwork, int* info);
438 void PREFIX SPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, float*x , const int* ldx, int* info);
439 void PREFIX SPOEQU_F77(const int* n, const float* a, const int* lda, float* s, float* scond, float* amax, int* info);
440 void PREFIX SPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, const float* af, const int* ldaf, const float* b, const int* ldb, float* x, const int* ldx, float* ferr, float* berr, float* work, int* iwork, int* info);
441 void PREFIX SPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, float* af, const int* ldaf, Teuchos_nonconst_fcd, float* s, float* b, const int* ldb, float* x, const int* ldx, float* rcond, float* ferr, float* berr, float* work, int* iwork, int* info);
442 void PREFIX STRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, const float* a, const int* lda, float* b, const int* ldb, int* info);
443 void PREFIX STRTRI_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const float* a, const int* lda, int* info);
444 void PREFIX SGEQP3_F77( const int *M, const int *N, float *A, const int *LDA, int *JPVT, float *TAU, float *WORK, const int *LWORK, int *INFO );
445 
446 // Double precision LAPACK eigen solvers
447 void PREFIX DSPEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, double* ap, double* w, double* z, const int* ldz, double* work, int* info);
448 void PREFIX DSYEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, double* a, const int* lda, double* w, double* work, const int* lwork, int* info);
449 void PREFIX DSYGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, double* a, const int* lda, double* B, const int* ldb, double* w, double* work, const int* lwork, int* info);
450 void PREFIX DSTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, double* Z, const int* ldz, double* work, int* info);
451 void PREFIX DPTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, double* Z, const int* ldz, double* work, int* info);
452 void PREFIX DGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, double* a, const int* lda, double* wr, double* wi, double* vl, const int* ldvl, double* vr, const int* ldvr, double* work, const int* lwork, int* info);
453 void PREFIX DGGEV_F77(Teuchos_fcd, Teuchos_fcd, const int *n, double *A, const int *lda, double *B, const int *ldb, double *alphar, double *alphai, double *beta, double *vl, const int *ldvl, double *vr, const int *ldvr, double *work, const int *lwork, int *info);
454 void PREFIX DGGES_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(double*, double*, double*), const int* n, double* A, const int* lda, double* B, const int* ldb, int* sdim, double* alphar, double* alphai, double* beta, double* vl, const int* ldvl, double* vr, const int* ldvr, double* work, const int *lwork, int *bwork, int *info);
455 void PREFIX DTRSEN_F77(Teuchos_fcd, Teuchos_fcd, const int *select, const int *n, double *t, const int *ldt, double *q, const int *ldq, double *wr, double *wi, int *m, double *s, double *sep, double *work, const int *lwork, int *iwork, const int *liwork, int *info);
456 void PREFIX DTGSEN_F77(const int *ijob, const int *wantq, const int *wantz, const int *select, const int *n, double *a, const int *lda, double *b, const int *ldb, double *alphar, double *alphai, double *beta, double *q, const int *ldq, double *z, const int *ldz, int *m, double *pl, double *pr, double *dif, double *work, const int *lwork, int *iwork, const int *liwork, int *info);
457 void PREFIX DGESVD_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, double* a, const int* lda, double* s, double* u, const int* ldu, double* v, const int* ldv, double* work, const int* lwork, int* info);
458 void PREFIX DGGEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, double* a, const int* lda, double* b, const int* ldb, double* alphar, double* alphai, double* beta, double* vl, const int* ldvl, double* vr, const int* ldvr, int* ilo, int* ihi, double* lscale, double* rscale, double* abnrm, double* bbnrm, double* rconde, double* rcondv, double* work, const int* lwork, int* iwork, int* bwork, int* info);
459 void PREFIX DGEEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, double* a, const int* lda, double* alphar, double* alphai, double* vl, const int* ldvl, double* vr, const int* ldvr, int* ilo, int* ihi, double* scale, double* abnrm, double* rconde, double* rcondv, double* work, const int* lwork, int* iwork, int* info);
460 void PREFIX DGEHRD_F77(const int* n, const int* ilo, const int* ihi, double* A, const int* lda, double* tau, double* work, const int* lwork, int* info);
461 void PREFIX DHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, double* h, const int* ldh, double* wr, double* wi, double* z, const int* ldz, double* work, const int* lwork, int* info);
462 void PREFIX DGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(double*, double*), const int* n, double* a, const int* lda, int*sdim, double* wr, double* wi, double* vs, const int* ldvs, double* work, const int* lwork, int* bwork, int* info);
463 void PREFIX DORGHR_F77(const int* n, const int* ilo, const int* ihi, double* a, const int* lda, const double* tau, double* work, const int* lwork, int* info);
464 void PREFIX DORMHR_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, const int* ilo, const int* ihi, const double* a, const int* lda, const double* tau, double* c, const int* ldc, double* work, const int* lwork, int* info);
465 void PREFIX DORGQR_F77(const int* m, const int* n, const int* k, double* a, const int* lda, const double* tau, double* work, const int* lwork, int* info);
466 void PREFIX DORMQR_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, const int* k, double* a, const int* lda, const double* tau, double* C, const int* ldc, double* work, const int* lwork, int* info);
467 void PREFIX DORM2R_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* const M, const int* const N, const int* const K, const double A[], const int* const LDA, const double TAU[], double C[], const int* const LDC, double WORK[], int* const INFO);
468 
469 void PREFIX DTREVC_F77(Teuchos_fcd, Teuchos_fcd, int* select, const int* n, const double* t, const int* ldt, double* vl, const int* ldvl, double* vr, const int* ldvr, const int* mm, int* m, double* work, int* info);
470 void PREFIX DTREXC_F77(Teuchos_fcd, const int* n, double* t, const int* ldt, double* q, const int* ldq, int* ifst, int* ilst, double* work, int* info);
471 void PREFIX DTGEVC_F77(Teuchos_fcd, Teuchos_fcd, const int *select, const int *n, double *s, const int *lds, double *p, const int *ldp, double *vl, const int *ldvl, double *vr, const int *ldvr, const int *mm, int *m, double *work, int *info);
472 
473 
474 // Single precision LAPACK eigen solvers
475 
476 void PREFIX SSPEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, float* ap, float* w, float* z, const int* ldz, float* work, int* info);
477 void PREFIX SSYEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, float* a, const int* lda, float* w, float* work, const int* lwork, int* info);
478 void PREFIX SSYGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, float* a, const int* lda, float* B, const int* ldb, float* w, float* work, const int* lwork, int* info);
479 void PREFIX SSTEQR_F77(Teuchos_fcd, const int* n, float* D, float* E, float* Z, const int* ldz, float* work, int* info);
480 void PREFIX SPTEQR_F77(Teuchos_fcd, const int* n, float* D, float* E, float* Z, const int* ldz, float* work, int* info);
481 void PREFIX SGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, float* a, const int* lda, float* wr, float* wi, float* vl, const int* ldvl, float* vr, const int* ldvr, float* work, const int* lwork, int* info);
482 void PREFIX SGGEV_F77(Teuchos_fcd, Teuchos_fcd, const int *n, float *A, const int *lda, float *B, const int *ldb, float *alphar, float *alphai, float *beta, float *vl, const int *ldvl, float *vr, const int *ldvr, float *work, const int *lwork, int *info);
483 void PREFIX SGGES_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(float*, float*, float*), const int* n, float* A, const int* lda, float* B, const int* ldb, int* sdim, float* alphar, float* alphai, float* beta, float* vl, const int* ldvl, float* vr, const int* ldvr, float* work, const int *lwork, int *bwork, int *info);
484 void PREFIX STRSEN_F77(Teuchos_fcd, Teuchos_fcd, const int *select, const int *n, float *t, const int *ldt, float *q, const int *ldq, float *wr, float *wi, int *m, float *s, float *sep, float *work, const int *lwork, int *iwork, const int *liwork, int *info);
485 void PREFIX STGSEN_F77(const int *ijob, const int *wantq, const int *wantz, const int *select, const int *n, float *a, const int *lda, float *b, const int *ldb, float *alphar, float *alphai, float *beta, float *q, const int *ldq, float *z, const int *ldz, int *m, float *pl, float *pr, float *dif, float *work, const int *lwork, int *iwork, const int *liwork, int *info);
486 void PREFIX SGESVD_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, float* a, const int* lda, float* s, float* u, const int* ldu, float* v, const int* ldv, float* work, const int* lwork, int* info);
487 void PREFIX SGGEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, float* a, const int* lda, float* b, const int* ldb, float* alphar, float* alphai, float* beta, float* vl, const int* ldvl, float* vr, const int* ldvr, int* ilo, int* ihi, float* lscale, float* rscale, float* abnrm, float* bbnrm, float* rconde, float* rcondv, float* work, const int* lwork, int* iwork, int* bwork, int* info);
488 void PREFIX SGEEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, float* a, const int* lda, float* wr, float* wi, float* vl, const int* ldvl, float* vr, const int* ldvr, int* ilo, int* ihi, float* scale, float* abnrm, float* rconde, float* rcondv, float* work, const int* lwork, int* iwork, int* info);
489 void PREFIX SGEHRD_F77(const int* n, const int* ilo, const int* ihi, float* A, const int* lda, float* tau, float* work, const int* lwork, int* info);
490 void PREFIX SHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, float* h, const int* ldh, float* wr, float* wi, float* z, const int* ldz, float* work, const int* lwork, int* info);
491 void PREFIX SGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(float*, float*), const int* n, float* a, const int* lda, int* sdim, float* wr, float* wi, float* vs, const int* ldvs, float* work, const int* lwork, int* bwork, int* info);
492 void PREFIX SORGHR_F77(const int* n, const int* ilo, const int* ihi, float* a, const int* lda, const float* tau, float* work, const int* lwork, int* info);
493 void PREFIX SORMHR_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, const int* ilo, const int* ihi, const float* a, const int* lda, const float* tau, float* c, const int* ldc, float* work, const int* lwork, int* info);
494 void PREFIX SORGQR_F77(const int* m, const int* n, const int* k, float* a, const int* lda, const float* tau, float* work, const int* lwork, int* info);
495 void PREFIX SORMQR_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, const int* k, float* a, const int* lda, const float* tau, float* C, const int* ldc, float* work, const int* lwork, int* info);
496 void PREFIX SORM2R_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* const M, const int* const N, const int* const K, const float A[], const int* const LDA, const float TAU[], float C[], const int* const LDC, float WORK[], int* const INFO);
497 
498 void PREFIX STREVC_F77(Teuchos_fcd, Teuchos_fcd, int* select, const int* n, const float* t, const int* ldt, float* vl, const int* ldvl, float* vr, const int* ldvr, const int* mm, int* m, float* work, int* info);
499 void PREFIX STREXC_F77(Teuchos_fcd, const int* n, float* t, const int* ldt, float* q, const int* ldq, int* ifst, int* ilst, float* work, int* info);
500 void PREFIX STGEVC_F77(Teuchos_fcd, Teuchos_fcd, const int *select, const int *n, float *s, const int *lds, float *p, const int *ldp, float *vl, const int *ldvl, float *vr, const int *ldvr, const int *mm, int *m, float *work, int *info);
501 
502 void PREFIX SLARTG_F77(const float* f, const float* g, float* c, float* s, float* r);
503 void PREFIX DLARTG_F77(const double* f, const double* g, double* c, double* s, double* r);
504 
505 void PREFIX SLARFG_F77(const int* n, float* alpha, float* x, const int* incx, float* tau);
506 void PREFIX DLARFG_F77(const int* n, double* alpha, double* x, const int* incx, double* tau);
507 
508 void PREFIX SGEBAL_F77(Teuchos_fcd, const int* n, float* a, const int* lda, int* ilo, int* ihi, float* scale, int* info);
509 void PREFIX SGEBAK_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, const float* scale, const int* m, float* V, const int* ldv, int* info);
510 void PREFIX DGEBAL_F77(Teuchos_fcd, const int* n, double* a, const int* lda, int* ilo, int* ihi, double* scale, int* info);
511 void PREFIX DGEBAK_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, const double* scale, const int* m, double* V, const int* ldv, int* info);
512 
513 float PREFIX SLARND_F77(const int* idist, int* seed);
514 double PREFIX DLARND_F77(const int* idist, int* seed);
515 
516 void PREFIX SLARNV_F77(const int* idist, int* seed, const int* n, float* v);
517 void PREFIX DLARNV_F77(const int* idist, int* seed, const int* n, double* v);
518 
519 float PREFIX SLAMCH_F77(Teuchos_fcd);
520 double PREFIX DLAMCH_F77(Teuchos_fcd);
521 
522 #if defined(INTEL_CXML)
523 int PREFIX ILAENV_F77( const int* ispec, const char* name, unsigned int name_length, const char* opts, unsigned int opts_length, const int* N1, const int* N2, const int* N3, const int* N4 );
524 #else
525 int PREFIX ILAENV_F77( const int* ispec, const char* name, const char* opts, const int* N1, const int* N2, const int* N3, const int* N4, unsigned int name_length, unsigned int opts_length );
526 #endif
527 
528 #ifdef HAVE_TEUCHOS_BLASFLOAT
529  #if defined(HAVE_SLAPY2_PROBLEM) && defined(HAVE_SLAPY2_DOUBLE_RETURN)
530  double PREFIX SLAPY2_F77(const float* x, const float* y);
531  #else
532  float PREFIX SLAPY2_F77(const float* x, const float* y);
533  #endif
534 #endif
535 
536 double PREFIX DLAPY2_F77(const double* x, const double* y);
537 
538 #ifdef HAVE_TEUCHOS_COMPLEX
539 
540 // Double precision complex LAPACK linear solvers
541 void PREFIX ZGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, std::complex<double>* b, const int* ldb, std::complex<double>* work, const int* lwork, int* info);
542 void PREFIX ZGELSS_F77(const int* m, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, std::complex<double>* b, const int* ldb, double* s, const double* rcond, int* rank, std::complex<double>* work, const int* lwork, double* rwork, int* info);
543 void PREFIX ZGEQRF_F77(const int* m, const int* n, std::complex<double>* a, const int* lda, std::complex<double>* tau, std::complex<double>* work, const int* lwork, int* info);
544 void PREFIX ZGEQR2_F77(const int* const m, const int* const n, std::complex<double> a[], const int* const lda, std::complex<double> tau[], std::complex<double> work[], int* const info);
545 void PREFIX ZUNGQR_F77(const int* m, const int* n, const int* k, std::complex<double>* a, const int* lda, const std::complex<double>* tau, std::complex<double>* work, const int* lwork, int* info);
546 void PREFIX ZUNMQR_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* m, const int* n, const int* k, std::complex<double>* A, const int* lda, const std::complex<double>* tau, std::complex<double>* C, const int* ldc, std::complex<double>* work, const int* lwork, int* info);
547 void PREFIX ZUNM2R_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* const M, const int* const N, const int* const K, const std::complex<double> A[], const int* const LDA, const std::complex<double> TAU[], std::complex<double> C[], const int* const LDC, std::complex<double> WORK[], int* const INFO);
548 void PREFIX ZGETRF_F77(const int* m, const int* n, std::complex<double>* a, const int* lda, int* ipiv, int* info);
549 void PREFIX ZGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<double>* a, const int* lda,const int* ipiv, std::complex<double>* x , const int* ldx, int* info);
550 void PREFIX ZLASCL_F77(Teuchos_fcd, const int* kl, const int* ku, const double* cfrom, const double* cto, const int* m, const int* n, const std::complex<double>* a, const int* lda, int* info);
551 void PREFIX ZLASWP_F77(const int* N, std::complex<double> A[], const int* LDA, const int* K1, const int* K2, const int IPIV[], const int* INCX);
552 void PREFIX ZGBTRF_F77(const int* m, const int* n, const int* kl, const int* ku, std::complex<double>* a, const int* lda, int* ipiv, int* info);
553 void PREFIX ZGBTRS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const std::complex<double>* a, const int* lda,const int* ipiv, std::complex<double>* x , const int* ldx, int* info);
554 void PREFIX ZGTTRF_F77(const int* n, std::complex<double>* dl, std::complex<double>* d, std::complex<double>* du, std::complex<double>* du2, int* ipiv, int* info);
555 void PREFIX ZGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<double>* dl, const std::complex<double>* d, const std::complex<double>* du, const std::complex<double>* du2, const int* ipiv, std::complex<double>* x , const int* ldx, int* info);
556 void PREFIX ZPTTRF_F77(const int* n, std::complex<double>* d, std::complex<double>* e, int* info);
557 void PREFIX ZPTTRS_F77(const int* n, const int* nrhs, const std::complex<double>* d, const std::complex<double>* e, std::complex<double>* x , const int* ldx, int* info);
558 void PREFIX ZGETRI_F77(const int* n, std::complex<double>* a, const int* lda, const int* ipiv, std::complex<double>* work , const int* lwork, int* info);
559 void PREFIX ZLATRS_F77(Teuchos_fcd UPLO, Teuchos_fcd TRANS, Teuchos_fcd DIAG, Teuchos_fcd NORMIN, const int* N, std::complex<double>* A, const int* LDA, std::complex<double>* X, double* SCALE, double* CNORM, int* INFO);
560 void PREFIX ZGECON_F77(Teuchos_fcd norm, const int* n, const std::complex<double>* a, const int* lda, const double* anorm, double* rcond, std::complex<double>* work, double* rwork, int* info);
561 void PREFIX ZGBCON_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const std::complex<double>* a, const int* lda, int* IPIV, const double* anorm, double* rcond, std::complex<double>* work, double* rwork, int* info);
562 double PREFIX ZLANGB_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const std::complex<double>* a, const int* lda, double* work);
563 void PREFIX ZGESV_F77(const int* n, const int* nrhs, std::complex<double>* a, const int* lda, int* ipiv, std::complex<double>* x , const int* ldx, int* info);
564 void PREFIX ZGEEQU_F77(const int* m, const int* n, const std::complex<double>* a, const int* lda, double* r, double* c, double* rowcnd, double* colcnd, double* amax, int* info);
565 void PREFIX ZGBEQU_F77(const int* m, const int* n, const int* kl, const int* ku, const std::complex<double>* a, const int* lda, double* r, double* c, double* rowcnd, double* colcnd, double* amax, int* info);
566 void PREFIX ZGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<double>* a, const int* lda, const std::complex<double>* af, const int* ldaf, const int* ipiv, const std::complex<double>* b, const int* ldb, std::complex<double>* x, const int* ldx, double* ferr, double* berr, std::complex<double>* work, double* rwork, int* info);
567 void PREFIX ZGBRFS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const std::complex<double>* a, const int* lda, const std::complex<double>* af, const int* ldaf, const int* ipiv, const std::complex<double>* b, const int* ldb, std::complex<double>* x, const int* ldx, double* ferr, double* berr, std::complex<double>* work, double* rwork, int* info);
568 void PREFIX ZGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, std::complex<double>* af, const int* ldaf, int* ipiv, Teuchos_nonconst_fcd, double* r, double* c, std::complex<double>* b, const int* ldb, std::complex<double>* x, const int* ldx, double* rcond, double* ferr, double* berr, std::complex<double>* work, double* rwork, int* info);
569 void PREFIX ZPOTRF_F77(Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, int* info);
570 void PREFIX ZPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<double>* a, const int* lda, std::complex<double>*x , const int* ldx, int* info);
571 void PREFIX ZPOTRI_F77(Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, int* info);
572 void PREFIX ZPOCON_F77(Teuchos_fcd, const int* n, const std::complex<double>* a, const int* lda, const double* anorm, double* rcond, std::complex<double>* work, double* rwork, int* info);
573 void PREFIX ZPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, std::complex<double>*x , const int* ldx, int* info);
574 void PREFIX ZPOEQU_F77(const int* n, const std::complex<double>* a, const int* lda, double* s, double* scond, double* amax, int* info);
575 void PREFIX ZPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, const std::complex<double>* af, const int* ldaf, const std::complex<double>* b, const int* ldb, std::complex<double>* x, const int* ldx, double* ferr, double* berr, std::complex<double>* work, double* rwork, int* info);
576 void PREFIX ZPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, std::complex<double>* a, const int* lda, std::complex<double>* af, const int* ldaf, Teuchos_nonconst_fcd, double* s, std::complex<double>* b, const int* ldb, std::complex<double>* x, const int* ldx, double* rcond, double* ferr, double* berr, std::complex<double>* work, double* rwork, int* info);
577 void PREFIX ZTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, const std::complex<double>* a, const int* lda, std::complex<double>* b, const int* ldb, int* info);
578 void PREFIX ZTRTRI_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const std::complex<double>* a, const int* lda, int* info);
579 void PREFIX ZGEQP3_F77( const int *M, const int *N, std::complex<double>* A, const int *LDA, int *JPVT, std::complex<double>* TAU, std::complex<double>* WORK, const int *LWORK, double *RWORK, int *INFO );
580 
581 // Single precision complex LAPACK linear solvers
582 
583 void PREFIX CGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, std::complex<float>* b, const int* ldb, std::complex<float>* work, const int* lwork, int* info);
584 void PREFIX CGELSS_F77(const int* m, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, std::complex<float>* b, const int* ldb, float* s, const float* rcond, int* rank, std::complex<float>* work, const int* lwork, float* rwork, int* info);
585 void PREFIX CGEQRF_F77(const int* m, const int* n, std::complex<float>* a, const int* lda, std::complex<float>* tau, std::complex<float>* work, const int* lwork, int* info);
586 void PREFIX CGEQR2_F77(const int* const m, const int* const n, std::complex<float> a[], const int* const lda, std::complex<float> tau[], std::complex<float> work[], int* const info);
587 void PREFIX CUNGQR_F77(const int* m, const int* n, const int* k, std::complex<float>* a, const int* lda, const std::complex<float>* tau, std::complex<float>* work, const int* lwork, int* info);
588 void PREFIX CUNMQR_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* m, const int* n, const int* k, std::complex<float>* A, const int* lda, const std::complex<float>* tau, std::complex<float>* C, const int* ldc, std::complex<float>* work, const int* lwork, int* info);
589 void PREFIX CUNM2R_F77(Teuchos_fcd SIDE, Teuchos_fcd TRANS, const int* const M, const int* const N, const int* const K, const std::complex<float> A[], const int* const LDA, const std::complex<float> TAU[], std::complex<float> C[], const int* const LDC, std::complex<float> WORK[], int* const INFO);
590 void PREFIX CGETRF_F77(const int* m, const int* n, std::complex<float>* a, const int* lda, int* ipiv, int* info);
591 void PREFIX CGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<float>* a, const int* lda,const int* ipiv, std::complex<float>* x , const int* ldx, int* info);
592 void PREFIX CLASCL_F77(Teuchos_fcd, const int* kl, const int* ku, const float* cfrom, const float* cto, const int* m, const int* n, const std::complex<float>* a, const int* lda, int* info);
593 void PREFIX CLASWP_F77(const int* N, std::complex<float> A[], const int* LDA, const int* K1, const int* K2, const int IPIV[], const int* INCX);
594 void PREFIX CGBTRF_F77(const int* m, const int* n, const int* kl, const int* ku, std::complex<float>* a, const int* lda, int* ipiv, int* info);
595 void PREFIX CGBTRS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const std::complex<float>* a, const int* lda,const int* ipiv, std::complex<float>* x , const int* ldx, int* info);
596 void PREFIX CGTTRF_F77(const int* n, std::complex<float>* dl, std::complex<float>* d, std::complex<float>* du, std::complex<float>* du2, int* ipiv, int* info);
597 void PREFIX CGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<float>* dl, const std::complex<float>* d, const std::complex<float>* du, const std::complex<float>* du2, const int* ipiv, std::complex<float>* x , const int* ldx, int* info);
598 void PREFIX CPTTRF_F77(const int* n, std::complex<float>* d, std::complex<float>* e, int* info);
599 void PREFIX CPTTRS_F77(const int* n, const int* nrhs, const std::complex<float>* d, const std::complex<float>* e, std::complex<float>* x , const int* ldx, int* info);
600 void PREFIX CGETRI_F77(const int* n, std::complex<float>* a, const int* lda, const int* ipiv, std::complex<float>* work , const int* lwork, int* info);
601 void PREFIX CLATRS_F77(Teuchos_fcd UPLO, Teuchos_fcd TRANS, Teuchos_fcd DIAG, Teuchos_fcd NORMIN, const int* N, std::complex<float>* A, const int* LDA, std::complex<float>* X, float* SCALE, float* CNORM, int* INFO);
602 void PREFIX CGECON_F77(Teuchos_fcd norm, const int* n, const std::complex<float>* a, const int* lda, const float* anorm, float* rcond, std::complex<float>* work, float* rwork, int* info);
603 void PREFIX CGBCON_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const std::complex<float>* a, const int* lda, int* IPIV, const float* anorm, float* rcond, std::complex<float>* work, float* rwork, int* info);
604 float PREFIX CLANGB_F77(Teuchos_fcd norm, const int* n, const int* kl, const int* ku, const std::complex<float>* a, const int* lda, float* work);
605 void PREFIX CGESV_F77(const int* n, const int* nrhs, std::complex<float>* a, const int* lda, int* ipiv, std::complex<float>* x, const int* ldx, int* info);
606 void PREFIX CGEEQU_F77(const int* m, const int* n, const std::complex<float>* a, const int* lda, float* r, float* c, float* rowcnd, float* colcnd, float* amax, int* info);
607 void PREFIX CGBEQU_F77(const int* m, const int* n, const int* kl, const int* ku, const std::complex<float>* a, const int* lda, float* r, float* c, float* rowcnd, float* colcnd, float* amax, int* info);
608 void PREFIX CGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<float>* a, const int* lda, const std::complex<float>* af, const int* ldaf, const int* ipiv, const std::complex<float>* b, const int* ldb, std::complex<float>* x, const int* ldx, float* ferr, float* berr, std::complex<float>* work, float* rwork, int* info);
609 void PREFIX CGBRFS_F77(Teuchos_fcd, const int* n, const int* kl, const int* ku, const int* nrhs, const std::complex<float>* a, const int* lda, const std::complex<float>* af, const int* ldaf, const int* ipiv, const std::complex<float>* b, const int* ldb, std::complex<float>* x, const int* ldx, float* ferr, float* berr, std::complex<float>* work, float* rwork, int* info);
610 void PREFIX CGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, std::complex<float>* af, const int* ldaf, int* ipiv, Teuchos_nonconst_fcd, float* r, float* c, std::complex<float>* b, const int* ldb, std::complex<float>* x, const int* ldx, float* rcond, float* ferr, float* berr, std::complex<float>* work, float* rwork, int* info);
611 void PREFIX CPOTRF_F77(Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, int* info);
612 void PREFIX CPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const std::complex<float>* a, const int* lda, std::complex<float>*x , const int* ldx, int* info);
613 void PREFIX CPOTRI_F77(Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, int* info);
614 void PREFIX CPOCON_F77(Teuchos_fcd, const int* n, const std::complex<float>* a, const int* lda, const float* anorm, float* rcond, std::complex<float>* work, float* rwork, int* info);
615 void PREFIX CPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, std::complex<float>*x , const int* ldx, int* info);
616 void PREFIX CPOEQU_F77(const int* n, const std::complex<float>* a, const int* lda, float* s, float* scond, float* amax, int* info);
617 void PREFIX CPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, const std::complex<float>* af, const int* ldaf, const std::complex<float>* b, const int* ldb, std::complex<float>* x, const int* ldx, float* ferr, float* berr, std::complex<float>* work, float* rwork, int* info);
618 void PREFIX CPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, std::complex<float>* a, const int* lda, std::complex<float>* af, const int* ldaf, Teuchos_nonconst_fcd, float* s, std::complex<float>* b, const int* ldb, std::complex<float>* x, const int* ldx, float* rcond, float* ferr, float* berr, std::complex<float>* work, float* rwork, int* info);
619 void PREFIX CTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, const std::complex<float>* a, const int* lda, std::complex<float>* b, const int* ldb, int* info);
620 void PREFIX CTRTRI_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const std::complex<float>* a, const int* lda, int* info);
621 void PREFIX CGEQP3_F77( const int *M, const int *N, std::complex<float>* A, const int *LDA, int *JPVT, std::complex<float>* TAU, std::complex<float>* WORK, const int *LWORK, float *RWORK, int *INFO );
622 
623 // Double precision complex LAPACK eigensolvers
624 
625 void PREFIX ZSTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, std::complex<double>* Z, const int* ldz, double* work, int* info);
626 void PREFIX ZPTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, std::complex<double>* Z, const int* ldz, double* work, int* info);
627 void PREFIX ZHEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, double* w, std::complex<double>* work, const int* lwork, double* rwork, int* info);
628 void PREFIX ZHEGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, std::complex<double>* B, const int* ldb, double* w, std::complex<double>* work, const int* lwork, double *rwork, int* info);
629 void PREFIX ZGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, std::complex<double>* w, std::complex<double>* vl, const int* ldvl, std::complex<double>* vr, const int* ldvr, std::complex<double>* work, const int* lwork, double* rwork, int* info);
630 void PREFIX ZGGEV_F77(Teuchos_fcd, Teuchos_fcd, const int *n, std::complex<double> *A, const int *lda, std::complex<double> *B, const int *ldb, std::complex<double> *alpha, double *beta, double *vl, const int *ldvl, double *vr, const int *ldvr, double *work, const int *lwork, double *rwork, int *info);
631 void PREFIX ZGESVD_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, std::complex<double>* a, const int* lda, double* s, std::complex<double>* u, const int* ldu, std::complex<double>* v, const int* ldv, std::complex<double>* work, const int* lwork, double* rwork, int* info);
632 void PREFIX ZGGEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, std::complex<double>* b, const int* ldb, std::complex<double>* alpha, std::complex<double>* beta, std::complex<double>* vl, const int* ldvl, std::complex<double>* vr, const int* ldvr, int* ilo, int* ihi, double* lscale, double* rscale, double* abnrm, double* bbnrm, double* rconde, double* rcondv, std::complex<double>* work, const int* lwork, double* rwork, int* iwork, int* bwork, int* info);
633 void PREFIX ZGEEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, std::complex<double>* w, std::complex<double>* vl, const int* ldvl, std::complex<double>* vr, const int* ldvr, int* ilo, int* ihi, double* scale, double* abnrm, double* rconde, double* rcondv, std::complex<double>* work, const int* lwork, double* rwork, int* info);
634 void PREFIX ZGEHRD_F77(const int* n, const int* ilo, const int* ihi, std::complex<double>* A, const int* lda, std::complex<double>* tau, std::complex<double>* work, const int* lwork, int* info);
635 void PREFIX ZHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, std::complex<double>* h, const int* ldh, std::complex<double>* w, std::complex<double>* z, const int* ldz, std::complex<double>* work, const int* lwork, int* info);
636 void PREFIX ZGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(std::complex<double>*), const int* n, std::complex<double>* a, const int* lda, int* sdim, std::complex<double>* w, std::complex<double>* vs, const int* ldvs, std::complex<double>* work, const int* lwork, double* rwork, int* bwork, int* info);
637 void PREFIX ZTREVC_F77(Teuchos_fcd, Teuchos_fcd, int* select, const int* n, const std::complex<double>* t, const int* ldt, std::complex<double>* vl, const int* ldvl, std::complex<double>* vr, const int* ldvr, const int* mm, int* m, std::complex<double>* work, double* rwork, int* info);
638 
639 // note that complex takes const int* for ifst, ilst - float/double types do NOT - they tak int*
640 void PREFIX ZTREXC_F77(Teuchos_fcd, const int* n, std::complex<double>* t, const int* ldt, std::complex<double>* q, const int* ldq, const int* ifst, const int* ilst, int* info);
641 
642 // Single precision complex LAPACK eigensolvers
643 
644 void PREFIX CSTEQR_F77(Teuchos_fcd, const int* n, float* D, float* E, std::complex<float>* Z, const int* ldz, float* work, int* info);
645 void PREFIX CPTEQR_F77(Teuchos_fcd, const int* n, float* D, float* E, std::complex<float>* Z, const int* ldz, float* work, int* info);
646 void PREFIX CHEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, float* w, std::complex<float>* work, const int* lwork, float* rwork, int* info);
647 void PREFIX CHEGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, std::complex<float>* B, const int* ldb, float* w, std::complex<float>* work, const int* lwork, float *rwork, int* info);
648 void PREFIX CGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, std::complex<float>* w, std::complex<float>* vl, const int* ldvl, std::complex<float>* vr, const int* ldvr, std::complex<float>* work, const int* lwork, float* rwork, int* info);
649 void PREFIX CGGEV_F77(Teuchos_fcd, Teuchos_fcd, const int *n, std::complex<float> *A, const int *lda, std::complex<float> *B, const int *ldb, std::complex<float> *alpha, std::complex<float> *beta, std::complex<float> *vl, const int *ldvl, std::complex<float> *vr, const int *ldvr, std::complex<float> *work, const int *lwork, float *rwork, int *info);
650 void PREFIX CGESVD_F77(Teuchos_fcd, Teuchos_fcd, const int* m, const int* n, std::complex<float>* a, const int* lda, float* s, std::complex<float>* u, const int* ldu, std::complex<float>* v, const int* ldv, std::complex<float>* work, const int* lwork, float* rwork, int* info);
651 void PREFIX CGEEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, std::complex<float>* w, std::complex<float>* vl, const int* ldvl, std::complex<float>* vr, const int* ldvr, int* ilo, int* ihi, float* scale, float* abnrm, float* rconde, float* rcondv, std::complex<float>* work, const int* lwork, float* rwork, int* info);
652 void PREFIX CGGEVX_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, std::complex<float>* b, const int* ldb, std::complex<float>* alpha, std::complex<float>* beta, std::complex<float>* vl, const int* ldvl, std::complex<float>* vr, const int* ldvr, int* ilo, int* ihi, float* lscale, float* rscale, float* abnrm, float* bbnrm, float* rconde, float* rcondv, std::complex<float>* work, const int* lwork, float* rwork, int* iwork, int* bwork, int* info);
653 void PREFIX CGEHRD_F77(const int* n, const int* ilo, const int* ihi, std::complex<float>* A, const int* lda, std::complex<float>* tau, std::complex<float>* work, const int* lwork, int* info);
654 void PREFIX CHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, std::complex<float>* h, const int* ldh, std::complex<float>* w, std::complex<float>* z, const int* ldz, std::complex<float>* work, const int* lwork, int* info);
655 void PREFIX CGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(std::complex<float>*), const int* n, std::complex<float>* a, const int* lda, int* sdim, std::complex<float>* w, std::complex<float>* vs, const int* ldvs, std::complex<float>* work, const int* lwork, float* rwork, int* bwork, int* info);
656  void PREFIX CTREVC_F77(Teuchos_fcd, Teuchos_fcd, int* select, const int* n, const std::complex<float>* t, const int* ldt, std::complex<float>* vl, const int* ldvl, std::complex<float>* vr, const int* ldvr, const int* mm, int* m, std::complex<float>* work, float* rwork, int* info);
657 
658 // note that complex takes const int* for ifst, ilst - float/double types do NOT - they tak int*
659 void PREFIX CTREXC_F77(Teuchos_fcd, const int* n, std::complex<float>* t, const int* ldt, std::complex<float>* q, const int* ldq, const int* ifst, const int* ilst, int* info);
660 
661 void PREFIX CLARTG_F77(const std::complex<float>* f, const std::complex<float>* g, float* c, std::complex<float>* s, std::complex<float>* r);
662 void PREFIX ZLARTG_F77(const std::complex<double>* f, const std::complex<double>* g, double* c, std::complex<double>* s, std::complex<double>* r);
663 
664 void PREFIX CLARFG_F77(const int* n, std::complex<float>* alpha, std::complex<float>* x, const int* incx, std::complex<float>* tau);
665 void PREFIX ZLARFG_F77(const int* n, std::complex<double>* alpha, std::complex<double>* x, const int* incx, std::complex<double>* tau);
666 
667 void PREFIX CGEBAL_F77(Teuchos_fcd, const int* n, std::complex<float>* a, const int* lda, int* ilo, int* ihi, float* scale, int* info);
668 void PREFIX CGEBAK_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, const float* scale, const int* m, std::complex<float>* V, const int* ldv, int* info);
669 void PREFIX ZGEBAL_F77(Teuchos_fcd, const int* n, std::complex<double>* a, const int* lda, int* ilo, int* ihi, double* scale, int* info);
670 void PREFIX ZGEBAK_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, const double* scale, const int* m, std::complex<double>* V, const int* ldv, int* info);
671 
672 // Returning the C99 complex type instead of the C++ complex type
673 // avoids build warnings of the following form:
674 //
675 // warning: $FUNCTION_NAME has C-linkage specified, but returns
676 // user-defined type 'std::complex<double>' which is incompatible with
677 // C [-Wreturn-type-c-linkage]
678 //
679 // However, we may only use those types if the C++ compiler supports
680 // them. C++11 implies C99 support generally, so asking whether the
681 // compiler supports C++11 is a reasonable test. Unless you're using
682 // Visual Studio, which supports subsets of C++11, but not this.
683 #if (defined(HAVE_TEUCHOSCORE_CXX11) && !defined(_MSC_VER))
684 float _Complex PREFIX CLARND_F77(const int* idist, int* seed);
685 double _Complex PREFIX ZLARND_F77(const int* idist, int* seed);
686 #else // NOT HAVE_TEUCHOSCORE_CXX11 || _MSC_VER
687 std::complex<float> PREFIX CLARND_F77(const int* idist, int* seed);
688 std::complex<double> PREFIX ZLARND_F77(const int* idist, int* seed);
689 #endif
690 
691 
692 void PREFIX CLARNV_F77(const int* idist, int* seed, const int* n, std::complex<float>* v);
693 void PREFIX ZLARNV_F77(const int* idist, int* seed, const int* n, std::complex<double>* v);
694 
695 #endif /* HAVE_TEUCHOS_COMPLEX */
696 
697 #ifdef __cplusplus
698 }
699 #endif
700 
701 /* Don't leave a global macros called PREFIX or Teuchos_fcd laying around */
702 
703 #ifdef PREFIX
704 # undef PREFIX
705 #endif
706 
707 #ifdef Teuchos_fcd
708 # undef Teuchos_fcd
709 #endif
710 
711 #endif // end of TEUCHOS_LAPACK_WRAPPERS_HPP_
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
int rank(const Comm< Ordinal > &comm)
Get the process rank.