Teuchos_LAPACK_wrappers.hpp

Go to the documentation of this file.
00001 // @HEADER
00002 // ***********************************************************************
00003 // 
00004 //                    Teuchos: Common Tools Package
00005 //                 Copyright (2004) Sandia Corporation
00006 // 
00007 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00008 // license for use of this work by or on behalf of the U.S. Government.
00009 // 
00010 // This library is free software; you can redistribute it and/or modify
00011 // it under the terms of the GNU Lesser General Public License as
00012 // published by the Free Software Foundation; either version 2.1 of the
00013 // License, or (at your option) any later version.
00014 //  
00015 // This library is distributed in the hope that it will be useful, but
00016 // WITHOUT ANY WARRANTY; without even the implied warranty of
00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 // Lesser General Public License for more details.
00019 //  
00020 // You should have received a copy of the GNU Lesser General Public
00021 // License along with this library; if not, write to the Free Software
00022 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023 // USA
00024 // Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00025 // 
00026 // ***********************************************************************
00027 // @HEADER
00028 
00029 #ifndef _TEUCHOS_LAPACK_WRAPPERS_HPP_
00030 #define _TEUCHOS_LAPACK_WRAPPERS_HPP_
00031 
00032 #include "Teuchos_ConfigDefs.hpp"
00033 
00037 /* Define fcd (Fortran Teuchos_fcd descriptor) for non-standard situations */
00038 
00039 #if defined(CRAY_T3X) || defined(INTEL_CXML) || defined(INTEL_MKL)
00040 
00041 #if defined(CRAY_T3X)
00042 
00043 #include <fortran.h>
00044 #define PREFIX
00045 #define Teuchos_fcd fcd 
00046 
00047 #define DGEQRF_F77  F77_FUNC(sgeqrf,SGEQRF)
00048 #define DGETRF_F77  F77_FUNC(sgetrf,SGETRF)
00049 #define DGETRS_F77  F77_FUNC(sgetrs,SGETRS)
00050 #define DGTTRF_F77  F77_FUNC(sgttrf,SGTTRF)
00051 #define DGTTRS_F77  F77_FUNC(sgttrs,SGTTRS)
00052 #define DPTTRF_F77  F77_FUNC(spttrf,SPTTRF)
00053 #define DPTTRS_F77  F77_FUNC(spttrs,SPTTRS)
00054 #define DGETRI_F77  F77_FUNC(sgetri,SGETRI)
00055 #define DGERFS_F77  F77_FUNC(sgerfs,SGERFS)
00056 #define DGECON_F77  F77_FUNC(sgecon,SGECON)
00057 #define DGESVX_F77  F77_FUNC(sgesvx,SGESVX)
00058 #define DGESV_F77   F77_FUNC(sgesv,SGESV)
00059 #define DGEEQU_F77  F77_FUNC(sgeequ,SGEEQU)
00060 #define DSYTRD_F77  F77_FUNC(ssytrd,SSYTRD)
00061 #define DPOTRF_F77  F77_FUNC(spotrf,SPOTRF)
00062 #define DPOTRS_F77  F77_FUNC(spotrs,SPOTRS)
00063 #define DPOTRI_F77  F77_FUNC(spotri,SPOTRI)
00064 #define DPOCON_F77  F77_FUNC(spocon,SPOCON)
00065 #define DPOSV_F77   F77_FUNC(sposv,SPOSV)
00066 #define DPOEQU_F77  F77_FUNC(spoequ,SPOEQU)
00067 #define DPORFS_F77  F77_FUNC(sporfs,SPORFS)
00068 #define DPOSVX_F77  F77_FUNC(sposvx,SPOSVX)
00069 #define DLAMCH_F77  F77_FUNC(slamch,SLAMCH)
00070 #define DTRTRS_F77  F77_FUNC(strtrs,STRTRS)
00071 #define DGELS_F77   F77_FUNC(sgels,SGELS)
00072 #define DGEEV_F77   F77_FUNC(sgeev,SGEEV)
00073 #define DGEHRD_F77  F77_FUNC(sgehrd,SGEHRD)
00074 #define DHSEQR_F77  F77_FUNC(shseqr,SHSEQR)
00075 #define DORMQR_F77  F77_FUNC(sormqr,SORMQR)
00076 #define DORGQR_F77  F77_FUNC(sorgqr,SORGQR)
00077 #define DORGHR_F77  F77_FUNC(sorghr,SORGHR)
00078 #define DORMHR_F77  F77_FUNC(sormhr,SORMHR)
00079 #define DTREVC_F77  F77_FUNC(strevc,STREVC)
00080 #define DTREXC_F77  F77_FUNC(strexc,STREXC)
00081 #define DGEES_F77   F77_FUNC(sgees,SGEES)
00082 #define DSPEV_F77   F77_FUNC(sspev,SSPEV)
00083 #define DSYEV_F77   F77_FUNC(ssyev,SSYEV)
00084 #define DSYGV_F77   F77_FUNC(ssygv,SSYGV)
00085 #define DSTEQR_F77  F77_FUNC(ssteqr,SSTEQR)
00086 #define DLAPY2_F77  F77_FUNC(slapy2,SLAPY2)
00087 #define DLARTG_F77  F77_FUNC(slartg,SLARTG)
00088 #define DLARFG_F77  F77_FUNC(slarfg,SLARFG)
00089 #define DLARND_F77  F77_FUNC(slarnd,SLARND)
00090 #define DLARNV_F77  F77_FUNC(slarnv,SLARNV)
00091 #define ILAENV_F77  F77_FUNC(ilaenv,ILAENV)
00092 
00093 #ifdef HAVE_TEUCHOS_COMPLEX
00094 
00095 #define ZGEQRF_F77  F77_FUNC(cgeqrf,CGEQRF)
00096 #define ZUNGQR_F77  F77_FUNC(cungqr,CUNGQR)
00097 #define ZGETRF_F77  F77_FUNC(cgetrf,CGETRF)
00098 #define ZGETRS_F77  F77_FUNC(cgetrs,CGETRS)
00099 #define ZGTTRF_F77  F77_FUNC(cgttrf,CGTTRF)
00100 #define ZGTTRS_F77  F77_FUNC(cgttrs,CGTTRS)
00101 #define ZPTTRF_F77  F77_FUNC(cpttrf,CPTTRF)
00102 #define ZPTTRS_F77  F77_FUNC(cpttrs,CPTTRS)
00103 #define ZGETRI_F77  F77_FUNC(cgetri,CGETRI)
00104 #define ZGERFS_F77  F77_FUNC(cgerfs,CGERFS)
00105 #define ZGECON_F77  F77_FUNC(cgecon,CGECON)
00106 #define ZGESVX_F77  F77_FUNC(cgesvx,CGESVX)
00107 #define ZGESV_F77   F77_FUNC(cgesv,CGESV)
00108 #define ZGEEQU_F77  F77_FUNC(cgeequ,CGEEQU)
00109 #define ZPOTRF_F77  F77_FUNC(cpotrf,CPOTRF)
00110 #define ZPOTRS_F77  F77_FUNC(cpotrs,CPOTRS)
00111 #define ZPOTRI_F77  F77_FUNC(cpotri,CPOTRI)
00112 #define ZPOCON_F77  F77_FUNC(cpocon,CPOCON)
00113 #define ZPOSV_F77   F77_FUNC(cposv,CPOSV)
00114 #define ZPOEQU_F77  F77_FUNC(cpoequ,CPOEQU)
00115 #define ZPORFS_F77  F77_FUNC(cporfs,CPORFS)
00116 #define ZPOSVX_F77  F77_FUNC(cposvx,CPOSVX)
00117 #define ZTRTRS_F77  F77_FUNC(ctrtrs,CTRTRS)
00118 #define ZGELS_F77   F77_FUNC(cgels,CGELS)
00119 #define ZGEEV_F77   F77_FUNC(cgeev,CGEEV)
00120 #define ZGEHRD_F77  F77_FUNC(cgehrd,CGEHRD)
00121 #define ZHSEQR_F77  F77_FUNC(chseqr,CHSEQR)
00122 #define ZTREVC_F77  F77_FUNC(ctrevc,CTREVC)
00123 #define ZTREXC_F77  F77_FUNC(ctrexc,CTREXC)
00124 #define ZGEES_F77   F77_FUNC(cgees,CGEES)
00125 #define ZSTEQR_F77  F77_FUNC(csteqr,CSTEQR)
00126 #define ZHEEV_F77   F77_FUNC(cheev,CHEEV)
00127 #define ZHEGV_F77   F77_FUNC(chegv,CHEGV)
00128 #define ZLARTG_F77  F77_FUNC(clartg,cLARTG)
00129 #define ZLARFG_F77  F77_FUNC(clarfg,cLARFG)
00130 #define ZLARND_F77  F77_FUNC(clarnd,CLARND)
00131 #define ZLARNV_F77  F77_FUNC(clarnv,CLARNV)
00132 
00133 #endif /* HAVE_TEUCHOS_COMPLEX */
00134 
00135 #elif defined(INTEL_CXML)
00136 
00137 #define PREFIX __stdcall 
00138 #define Teuchos_fcd const char *, unsigned int 
00139 
00140 #define DGEQRF_F77  F77_FUNC(dgeqrf,DGEQRF)
00141 #define DGETRF_F77  F77_FUNC(dgetrf,DGETRF)
00142 #define DGETRS_F77  F77_FUNC(dgetrs,DGETRS)
00143 #define DGTTRF_F77  F77_FUNC(dgttrf,DGTTRF)
00144 #define DGTTRS_F77  F77_FUNC(dgttrs,DGTTRS)
00145 #define DPTTRF_F77  F77_FUNC(dpttrf,DPTTRF)
00146 #define DPTTRS_F77  F77_FUNC(dpttrs,DPTTRS)
00147 #define DGETRI_F77  F77_FUNC(dgetri,DGETRI)
00148 #define DGERFS_F77  F77_FUNC(dgerfs,DGERFS)
00149 #define DGECON_F77  F77_FUNC(dgecon,DGECON)
00150 #define DGESVX_F77  F77_FUNC(dgesvx,DGESVX)
00151 #define DGESV_F77   F77_FUNC(dgesv,DGESV)
00152 #define DGEEQU_F77  F77_FUNC(dgeequ,DGEEQU)
00153 #define DSYTRD_F77  F77_FUNC(dsytrd,DSYTRD)
00154 #define DPOTRF_F77  F77_FUNC(dpotrf,DPOTRF)
00155 #define DPOTRS_F77  F77_FUNC(dpotrs,DPOTRS)
00156 #define DPOTRI_F77  F77_FUNC(dpotri,DPOTRI)
00157 #define DPOCON_F77  F77_FUNC(dpocon,DPOCON)
00158 #define DPOSV_F77   F77_FUNC(dposv,DPOSV)
00159 #define DPOEQU_F77  F77_FUNC(dpoequ,DPOEQU)
00160 #define DPORFS_F77  F77_FUNC(dporfs,DPORFS)
00161 #define DPOSVX_F77  F77_FUNC(dposvx,DPOSVX)
00162 #define DTRTRS_F77  F77_FUNC(dtrtrs,DTRTRS)
00163 #define DLAMCH_F77  F77_FUNC(dlamch,DLAMCH)
00164 #define DGELS_F77   F77_FUNC(dgels,DGELS)
00165 #define DGEEV_F77   F77_FUNC(dgeev,DGEEV)
00166 #define DGEHRD_F77  F77_FUNC(dgehrd,DGEHRD)
00167 #define DHSEQR_F77  F77_FUNC(dhseqr,DHSEQR)
00168 #define DORGHR_F77  F77_FUNC(dorghr,DORGHR)
00169 #define DORGQR_F77  F77_FUNC(dorgqr,DORGQR)
00170 #define DORMHR_F77  F77_FUNC(dormhr,DORMHR)
00171 #define DORMQR_F77  F77_FUNC(dormqr,DORMQR)
00172 #define DTREVC_F77  F77_FUNC(dtrevc,DTREVC)
00173 #define DTREXC_F77  F77_FUNC(dtrexc,DTREXC)
00174 #define DGEES_F77   F77_FUNC(dgees,DGEES)
00175 #define DSPEV_F77   F77_FUNC(dspev,DSPEV)
00176 #define DSYEV_F77   F77_FUNC(dsyev,DSYEV)
00177 #define DSYGV_F77   F77_FUNC(dsygv,DSYGV)
00178 #define DSTEQR_F77  F77_FUNC(dsteqr,DSTEQR)
00179 #define DLAPY2_F77  F77_FUNC(dlapy2,DLAPY2)
00180 #define DLARTG_F77  F77_FUNC(dlartg,DLARTG)
00181 #define DLARFG_F77  F77_FUNC(dlarfg,DLARFG)
00182 #define DLARND_F77  F77_FUNC(dlarnd,DLARND)
00183 #define DLARNV_F77  F77_FUNC(dlarnv,DLARNV)
00184 #define ILAENV_F77  F77_FUNC(ilaenv,ILAENV)
00185 
00186 #ifdef HAVE_TEUCHOS_COMPLEX
00187 
00188 #define ZGEQRF_F77  F77_FUNC(zgeqrf,ZGEQRF)
00189 #define ZUNGQR_F77  F77_FUNC(zungqr,ZUNGQR)
00190 #define ZGETRF_F77  F77_FUNC(zgetrf,ZGETRF)
00191 #define ZGETRS_F77  F77_FUNC(zgetrs,ZGETRS)
00192 #define ZGTTRF_F77  F77_FUNC(zgttrf,ZGTTRF)
00193 #define ZGTTRS_F77  F77_FUNC(zgttrs,ZGTTRS)
00194 #define ZPTTRF_F77  F77_FUNC(zpttrf,ZPTTRF)
00195 #define ZPTTRS_F77  F77_FUNC(zpttrs,ZPTTRS)
00196 #define ZGETRI_F77  F77_FUNC(zgetri,ZGETRI)
00197 #define ZGERFS_F77  F77_FUNC(zgerfs,ZGERFS)
00198 #define ZGECON_F77  F77_FUNC(zgecon,ZGECON)
00199 #define ZGESVX_F77  F77_FUNC(zgesvx,ZGESVX)
00200 #define ZGESV_F77   F77_FUNC(zgesv,ZGESV)
00201 #define ZGEEQU_F77  F77_FUNC(zgeequ,ZGEEQU)
00202 #define ZPOTRF_F77  F77_FUNC(zpotrf,ZPOTRF)
00203 #define ZPOTRS_F77  F77_FUNC(zpotrs,ZPOTRS)
00204 #define ZPOTRI_F77  F77_FUNC(zpotri,ZPOTRI)
00205 #define ZPOCON_F77  F77_FUNC(zpocon,ZPOCON)
00206 #define ZPOSV_F77   F77_FUNC(zposv,ZPOSV)
00207 #define ZPOEQU_F77  F77_FUNC(zpoequ,ZPOEQU)
00208 #define ZPORFS_F77  F77_FUNC(zporfs,ZPORFS)
00209 #define ZPOSVX_F77  F77_FUNC(zposvx,ZPOSVX)
00210 #define ZTRTRS_F77  F77_FUNC(ztrtrs,ZTRTRS)
00211 #define ZGELS_F77   F77_FUNC(zgels,ZGELS)
00212 #define ZGEEV_F77   F77_FUNC(zgeev,ZGEEV)
00213 #define ZGEHRD_F77  F77_FUNC(zgehrd,ZGEHRD)
00214 #define ZHSEQR_F77  F77_FUNC(zhseqr,ZHSEQR)
00215 #define ZTREVC_F77  F77_FUNC(ztrevc,ZTREVC)
00216 #define ZTREXC_F77  F77_FUNC(ztrexc,ZTREXC)
00217 #define ZGEES_F77   F77_FUNC(zgees,ZGEES)
00218 #define ZSTEQR_F77  F77_FUNC(zsteqr,ZSTEQR)
00219 #define ZHEEV_F77   F77_FUNC(zheev,ZHEEV)
00220 #define ZHEGV_F77   F77_FUNC(zhegv,ZHEGV)
00221 #define ZLARTG_F77  F77_FUNC(zlartg,ZLARTG)
00222 #define ZLARFG_F77  F77_FUNC(zlarfg,ZLARFG)
00223 #define ZLARND_F77  F77_FUNC(zlarnd,ZLARND)
00224 #define ZLARNV_F77  F77_FUNC(zlarnv,ZLARNV)
00225 
00226 #endif /* HAVE_TEUCHOS_COMPLEX */
00227 
00228 #elif defined(INTEL_MKL)
00229 
00230 #define PREFIX
00231 #define Teuchos_fcd const char *
00232 
00233 #define DGEQRF_F77  F77_FUNC(dgeqrf,DGEQRF)
00234 #define DGETRF_F77  F77_FUNC(dgetrf,DGETRF)
00235 #define DGETRS_F77  F77_FUNC(dgetrs,DGETRS)
00236 #define DGTTRF_F77  F77_FUNC(dgttrf,DGTTRF)
00237 #define DGTTRS_F77  F77_FUNC(dgttrs,DGTTRS)
00238 #define DPTTRF_F77  F77_FUNC(dpttrf,DPTTRF)
00239 #define DPTTRS_F77  F77_FUNC(dpttrs,DPTTRS)
00240 #define DGETRI_F77  F77_FUNC(dgetri,DGETRI)
00241 #define DGERFS_F77  F77_FUNC(dgerfs,DGERFS)
00242 #define DGECON_F77  F77_FUNC(dgecon,DGECON)
00243 #define DGESVX_F77  F77_FUNC(dgesvx,DGESVX)
00244 #define DGESV_F77   F77_FUNC(dgesv,DGESV)
00245 #define DGEEQU_F77  F77_FUNC(dgeequ,DGEEQU)
00246 #define DSYTRD_F77  F77_FUNC(dsytrd,DSYTRD)
00247 #define DPOTRF_F77  F77_FUNC(dpotrf,DPOTRF)
00248 #define DPOTRS_F77  F77_FUNC(dpotrs,DPOTRS)
00249 #define DPOTRI_F77  F77_FUNC(dpotri,DPOTRI)
00250 #define DPOCON_F77  F77_FUNC(dpocon,DPOCON)
00251 #define DPOSV_F77   F77_FUNC(dposv,DPOSV)
00252 #define DPOEQU_F77  F77_FUNC(dpoequ,DPOEQU)
00253 #define DPORFS_F77  F77_FUNC(dporfs,DPORFS)
00254 #define DPOSVX_F77  F77_FUNC(dposvx,DPOSVX)
00255 #define DTRTRS_F77  F77_FUNC(dtrtrs,DTRTRS)
00256 #define DLAMCH_F77  F77_FUNC(dlamch,DLAMCH)
00257 #define DGELS_F77   F77_FUNC(dgels,DGELS)
00258 #define DGEEV_F77   F77_FUNC(dgeev,DGEEV)
00259 #define DGEHRD_F77  F77_FUNC(dgehrd,DGEHRD)
00260 #define DHSEQR_F77  F77_FUNC(dhseqr,DHSEQR)
00261 #define DORGHR_F77  F77_FUNC(dorghr,DORGHR)
00262 #define DORGQR_F77  F77_FUNC(dorgqr,DORGQR)
00263 #define DORMHR_F77  F77_FUNC(dormhr,DORMHR)
00264 #define DORMQR_F77  F77_FUNC(dormqr,DORMQR)
00265 #define DTREVC_F77  F77_FUNC(dtrevc,DTREVC)
00266 #define DTREXC_F77  F77_FUNC(dtrexc,DTREXC)
00267 #define DGEES_F77   F77_FUNC(dgees,DGEES)
00268 #define DSPEV_F77   F77_FUNC(dspev,DSPEV)
00269 #define DSYEV_F77   F77_FUNC(dsyev,DSYEV)
00270 #define DSYGV_F77   F77_FUNC(dsygv,DSYGV)
00271 #define DSTEQR_F77  F77_FUNC(dsteqr,DSTEQR)
00272 #define DLAPY2_F77  F77_FUNC(dlapy2,DLAPY2)
00273 #define DLARTG_F77  F77_FUNC(dlartg,DLARTG)
00274 #define DLARFG_F77  F77_FUNC(dlarfg,DLARFG)
00275 #define DLARND_F77  F77_FUNC(dlarnd,DLARND)
00276 #define DLARNV_F77  F77_FUNC(dlarnv,DLARNV)
00277 #define ILAENV_F77  F77_FUNC(ilaenv,ILAENV)
00278 
00279 #ifdef HAVE_TEUCHOS_COMPLEX
00280 
00281 #define ZGEQRF_F77  F77_FUNC(zgeqrf,ZGEQRF)
00282 #define ZUNGQR_F77  F77_FUNC(zungqr,ZUNGQR)
00283 #define ZGTTRF_F77  F77_FUNC(zgttrf,ZGTTRF)
00284 #define ZGTTRS_F77  F77_FUNC(zgttrs,ZGTTRS)
00285 #define ZPTTRF_F77  F77_FUNC(zpttrf,ZPTTRF)
00286 #define ZPTTRS_F77  F77_FUNC(zpttrs,ZPTTRS)
00287 #define ZGETRF_F77  F77_FUNC(zgetrf,ZGETRF)
00288 #define ZGETRS_F77  F77_FUNC(zgetrs,ZGETRS)
00289 #define ZGETRI_F77  F77_FUNC(zgetri,ZGETRI)
00290 #define ZGERFS_F77  F77_FUNC(zgerfs,ZGERFS)
00291 #define ZGECON_F77  F77_FUNC(zgecon,ZGECON)
00292 #define ZGESVX_F77  F77_FUNC(zgesvx,ZGESVX)
00293 #define ZGESV_F77   F77_FUNC(zgesv,ZGESV)
00294 #define ZGEEQU_F77  F77_FUNC(zgeequ,ZGEEQU)
00295 #define ZPOTRF_F77  F77_FUNC(zpotrf,ZPOTRF)
00296 #define ZPOTRS_F77  F77_FUNC(zpotrs,ZPOTRS)
00297 #define ZPOTRI_F77  F77_FUNC(zpotri,ZPOTRI)
00298 #define ZPOCON_F77  F77_FUNC(zpocon,ZPOCON)
00299 #define ZPOSV_F77   F77_FUNC(zposv,ZPOSV)
00300 #define ZPOEQU_F77  F77_FUNC(zpoequ,ZPOEQU)
00301 #define ZPORFS_F77  F77_FUNC(zporfs,ZPORFS)
00302 #define ZPOSVX_F77  F77_FUNC(zposvx,ZPOSVX)
00303 #define ZTRTRS_F77  F77_FUNC(ztrtrs,ZTRTRS)
00304 #define ZGELS_F77   F77_FUNC(zgels,ZGELS)
00305 #define ZGEEV_F77   F77_FUNC(zgeev,ZGEEV)
00306 #define ZGEHRD_F77  F77_FUNC(zgehrd,ZGEHRD)
00307 #define ZHSEQR_F77  F77_FUNC(zhseqr,ZHSEQR)
00308 #define ZTREVC_F77  F77_FUNC(ztrevc,ZTREVC)
00309 #define ZTREXC_F77  F77_FUNC(ztrexc,ZTREXC)
00310 #define ZGEES_F77   F77_FUNC(zgees,ZGEES)
00311 #define ZSTEQR_F77  F77_FUNC(zsteqr,ZSTEQR)
00312 #define ZHEEV_F77   F77_FUNC(zheev,ZHEEV)
00313 #define ZHEGV_F77   F77_FUNC(zhegv,ZHEGV)
00314 #define ZLARTG_F77  F77_FUNC(zlartg,ZLARTG)
00315 #define ZLARFG_F77  F77_FUNC(zlarfg,ZLARFG)
00316 #define ZLARND_F77  F77_FUNC(zlarnd,ZLARND)
00317 #define ZLARNV_F77  F77_FUNC(zlarnv,ZLARNV)
00318 
00319 #endif /* HAVE_TEUCHOS_COMPLEX */
00320 
00321 #endif /* defined(CRAY_T3X) || defined(INTEL_CXML) || defined(INTEL_MKL) */
00322 
00323 /* All three of these machines use a simple uppercase mangling of Fortran names */
00324 
00325 /* if F77_FUNC is defined undefine it because we want to redefine */
00326 
00327 #ifdef F77_FUNC
00328 #undef F77_FUNC
00329 #endif
00330 
00331 #define F77_FUNC(lcase,UCASE) PREFIX UCASE
00332 
00333 #else /* Define Teuchos_fcd for all other machines */
00334 
00335 #define PREFIX
00336 #define Teuchos_fcd const char * 
00337 
00338 #ifndef HAVE_CONFIG_H
00339 
00340 #ifdef F77_FUNC
00341 #undef F77_FUNC
00342 #endif
00343 
00344 #ifdef TRILINOS_HAVE_NO_FORTRAN_UNDERSCORE
00345 #define F77_FUNC(lcase,UCASE) lcase
00346 #else /* TRILINOS_HAVE_NO_FORTRAN_UNDERSCORE not defined*/
00347 #define F77_FUNC(lcase,UCASE) lcase ## _
00348 #endif /* TRILINOS_HAVE_NO_FORTRAN_UNDERSCORE */
00349 
00350 #endif /* HAVE_CONFIG_H */
00351 
00352 #define DGEQRF_F77  F77_FUNC(dgeqrf,DGEQRF)
00353 #define DGETRF_F77  F77_FUNC(dgetrf,DGETRF)
00354 #define DGETRS_F77  F77_FUNC(dgetrs,DGETRS)
00355 #define DGTTRF_F77  F77_FUNC(dgttrf,DGTTRF)
00356 #define DGTTRS_F77  F77_FUNC(dgttrs,DGTTRS)
00357 #define DPTTRF_F77  F77_FUNC(dpttrf,DPTTRF)
00358 #define DPTTRS_F77  F77_FUNC(dpttrs,DPTTRS)
00359 #define DGETRI_F77  F77_FUNC(dgetri,DGETRI)
00360 #define DGERFS_F77  F77_FUNC(dgerfs,DGERFS)
00361 #define DGECON_F77  F77_FUNC(dgecon,DGECON)
00362 #define DGESVX_F77  F77_FUNC(dgesvx,DGESVX)
00363 #define DGESV_F77   F77_FUNC(dgesv,DGESV)
00364 #define DGEEQU_F77  F77_FUNC(dgeequ,DGEEQU)
00365 #define DSYTRD_F77  F77_FUNC(dsytrd,DSYTRD)
00366 #define DPOTRF_F77  F77_FUNC(dpotrf,DPOTRF)
00367 #define DPOTRS_F77  F77_FUNC(dpotrs,DPOTRS)
00368 #define DPOTRI_F77  F77_FUNC(dpotri,DPOTRI)
00369 #define DPOCON_F77  F77_FUNC(dpocon,DPOCON)
00370 #define DPOSV_F77   F77_FUNC(dposv,DPOSV)
00371 #define DPOEQU_F77  F77_FUNC(dpoequ,DPOEQU)
00372 #define DPORFS_F77  F77_FUNC(dporfs,DPORFS)
00373 #define DPOSVX_F77  F77_FUNC(dposvx,DPOSVX)
00374 #define DTRTRS_F77  F77_FUNC(dtrtrs,DTRTRS)
00375 #define DLAMCH_F77  F77_FUNC(dlamch,DLAMCH)
00376 #define DGELS_F77   F77_FUNC(dgels,DGELS)
00377 #define DGEEV_F77   F77_FUNC(dgeev,DGEEV)
00378 #define DGEHRD_F77  F77_FUNC(dgehrd,DGEHRD)
00379 #define DHSEQR_F77  F77_FUNC(dhseqr,DHSEQR)
00380 #define DORGHR_F77  F77_FUNC(dorghr,DORGHR)
00381 #define DORGQR_F77  F77_FUNC(dorgqr,DORGQR)
00382 #define DORMHR_F77  F77_FUNC(dormhr,DORMHR)
00383 #define DORMQR_F77  F77_FUNC(dormqr,DORMQR)
00384 #define DTREVC_F77  F77_FUNC(dtrevc,DTREVC)
00385 #define DTREXC_F77  F77_FUNC(dtrexc,DTREXC)
00386 #define DGEES_F77   F77_FUNC(dgees,DGEES)
00387 #define DSPEV_F77   F77_FUNC(dspev,DSPEV)
00388 #define DSYEV_F77   F77_FUNC(dsyev,DSYEV)
00389 #define DSYGV_F77   F77_FUNC(dsygv,DSYGV)
00390 #define DSTEQR_F77  F77_FUNC(dsteqr,DSTEQR)
00391 #define DLAPY2_F77  F77_FUNC(dlapy2,DLAPY2)
00392 #define DLARND_F77  F77_FUNC(dlarnd,DLARND)
00393 #define DLARNV_F77  F77_FUNC(dlarnv,DLARNV)
00394 #define DLARTG_F77  F77_FUNC(dlartg,DLARTG)
00395 #define DLARFG_F77  F77_FUNC(dlarfg,DLARFG)
00396 #define ILAENV_F77  F77_FUNC(ilaenv,ILAENV)
00397 
00398 #ifdef HAVE_TEUCHOS_COMPLEX
00399 
00400 #define ZGEQRF_F77  F77_FUNC(zgeqrf,ZGEQRF)
00401 #define ZUNGQR_F77  F77_FUNC(zungqr,ZUNGQR)
00402 #define ZGETRF_F77  F77_FUNC(zgetrf,ZGETRF)
00403 #define ZGETRS_F77  F77_FUNC(zgetrs,ZGETRS)
00404 #define ZGTTRF_F77  F77_FUNC(zgttrf,ZGTTRF)
00405 #define ZGTTRS_F77  F77_FUNC(zgttrs,ZGTTRS)
00406 #define ZPTTRF_F77  F77_FUNC(zpttrf,ZPTTRF)
00407 #define ZPTTRS_F77  F77_FUNC(zpttrs,ZPTTRS)
00408 #define ZGETRI_F77  F77_FUNC(zgetri,ZGETRI)
00409 #define ZGERFS_F77  F77_FUNC(zgerfs,ZGERFS)
00410 #define ZGECON_F77  F77_FUNC(zgecon,ZGECON)
00411 #define ZGESVX_F77  F77_FUNC(zgesvx,ZGESVX)
00412 #define ZGESV_F77   F77_FUNC(zgesv,ZGESV)
00413 #define ZGEEQU_F77  F77_FUNC(zgeequ,ZGEEQU)
00414 #define ZPOTRF_F77  F77_FUNC(zpotrf,ZPOTRF)
00415 #define ZPOTRS_F77  F77_FUNC(zpotrs,ZPOTRS)
00416 #define ZPOTRI_F77  F77_FUNC(zpotri,ZPOTRI)
00417 #define ZPOCON_F77  F77_FUNC(zpocon,ZPOCON)
00418 #define ZPOSV_F77   F77_FUNC(zposv,ZPOSV)
00419 #define ZPOEQU_F77  F77_FUNC(zpoequ,ZPOEQU)
00420 #define ZPORFS_F77  F77_FUNC(zporfs,ZPORFS)
00421 #define ZPOSVX_F77  F77_FUNC(zposvx,ZPOSVX)
00422 #define ZTRTRS_F77  F77_FUNC(ztrtrs,ZTRTRS)
00423 #define ZGELS_F77   F77_FUNC(zgels,ZGELS)
00424 #define ZGEEV_F77   F77_FUNC(zgeev,ZGEEV)
00425 #define ZGEHRD_F77  F77_FUNC(zgehrd,ZGEHRD)
00426 #define ZHSEQR_F77  F77_FUNC(zhseqr,ZHSEQR)
00427 #define ZTREVC_F77  F77_FUNC(ztrevc,ZTREVC)
00428 #define ZTREXC_F77  F77_FUNC(ztrexc,ZTREXC)
00429 #define ZGEES_F77   F77_FUNC(zgees,ZGEES)
00430 #define ZSTEQR_F77  F77_FUNC(zsteqr,ZSTEQR)
00431 #define ZHEEV_F77   F77_FUNC(zheev,ZHEEV)
00432 #define ZHEGV_F77   F77_FUNC(zhegv,ZHEGV)
00433 #define ZLARTG_F77  F77_FUNC(zlartg,ZLARTG)
00434 #define ZLARFG_F77  F77_FUNC(zlarfg,ZLARFG)
00435 #define ZLARND_F77  F77_FUNC(zlarnd,ZLARND)
00436 #define ZLARNV_F77  F77_FUNC(zlarnv,ZLARNV)
00437 
00438 #endif /* HAVE_TEUCHOS_COMPLEX */
00439 
00440 #endif
00441 
00442 #define SGEQRF_F77  F77_FUNC(sgeqrf,SGEQRF)
00443 #define SGETRF_F77  F77_FUNC(sgetrf,SGETRF)
00444 #define SGETRS_F77  F77_FUNC(sgetrs,SGETRS)
00445 #define SGTTRF_F77  F77_FUNC(sgttrf,SGTTRF)
00446 #define SGTTRS_F77  F77_FUNC(sgttrs,SGTTRS)
00447 #define SPTTRF_F77  F77_FUNC(spttrf,SPTTRF)
00448 #define SPTTRS_F77  F77_FUNC(spttrs,SPTTRS)
00449 #define SGETRI_F77  F77_FUNC(sgetri,SGETRI)
00450 #define SGERFS_F77  F77_FUNC(sgerfs,SGERFS)
00451 #define SGECON_F77  F77_FUNC(sgecon,SGECON)
00452 #define SGESVX_F77  F77_FUNC(sgesvx,SGESVX)
00453 #define SGESV_F77   F77_FUNC(sgesv,SGESV)
00454 #define SGEEQU_F77  F77_FUNC(sgeequ,SGEEQU)
00455 #define SSYTRD_F77  F77_FUNC(ssytrd,SSYTRD)
00456 #define SPOTRF_F77  F77_FUNC(spotrf,SPOTRF)
00457 #define SPOTRS_F77  F77_FUNC(spotrs,SPOTRS)
00458 #define SPOTRI_F77  F77_FUNC(spotri,SPOTRI)
00459 #define SPOCON_F77  F77_FUNC(spocon,SPOCON)
00460 #define SPOSV_F77   F77_FUNC(sposv,SPOSV)
00461 #define SPOEQU_F77  F77_FUNC(spoequ,SPOEQU)
00462 #define SPORFS_F77  F77_FUNC(sporfs,SPORFS)
00463 #define SPOSVX_F77  F77_FUNC(sposvx,SPOSVX)
00464 #define STRTRS_F77  F77_FUNC(strtrs,STRTRS)
00465 #define SGELS_F77   F77_FUNC(sgels,SGELS)
00466 #define SGEEV_F77   F77_FUNC(sgeev,SGEEV)
00467 #define SGEHRD_F77  F77_FUNC(sgehrd,SGEHRD)
00468 #define SHSEQR_F77  F77_FUNC(shseqr,SHSEQR)
00469 #define SORGHR_F77  F77_FUNC(sorghr,SORGHR)
00470 #define SORGQR_F77  F77_FUNC(sorgqr,SORGQR)
00471 #define SORMHR_F77  F77_FUNC(sormhr,SORMHR)
00472 #define SORMQR_F77  F77_FUNC(sormqr,SORMQR)
00473 #define STREVC_F77  F77_FUNC(strevc,STREVC)
00474 #define STREXC_F77  F77_FUNC(strexc,STREXC)
00475 #define SLAMCH_F77  F77_FUNC(slamch,SLAMCH)
00476 #define SGEES_F77   F77_FUNC(sgees,SGEES)
00477 #define SSPEV_F77   F77_FUNC(sspev,SSPEV)
00478 #define SSYEV_F77   F77_FUNC(ssyev,SSYEV)
00479 #define SSYGV_F77   F77_FUNC(ssygv,SSYGV)
00480 #define SSTEQR_F77  F77_FUNC(ssteqr,SSTEQR)
00481 #define SLAPY2_F77  F77_FUNC(slapy2,SLAPY2)
00482 #define SLARTG_F77  F77_FUNC(slartg,SLARTG)
00483 #define SLARFG_F77  F77_FUNC(slarfg,SLARFG)
00484 #define SLARND_F77  F77_FUNC(slarnd,SLARND)
00485 #define SLARNV_F77  F77_FUNC(slarnv,SLARNV)
00486 
00487 #ifdef HAVE_TEUCHOS_COMPLEX
00488 
00489 #define CGEQRF_F77  F77_FUNC(cgeqrf,CGEQRF)
00490 #define CUNGQR_F77  F77_FUNC(cungqr,CUNGQR)
00491 #define CGETRF_F77  F77_FUNC(cgetrf,CGETRF)
00492 #define CGETRS_F77  F77_FUNC(cgetrs,CGETRS)
00493 #define CGTTRF_F77  F77_FUNC(cgttrf,CGTTRF)
00494 #define CGTTRS_F77  F77_FUNC(cgttrs,CGTTRS)
00495 #define CPTTRF_F77  F77_FUNC(cpttrf,CPTTRF)
00496 #define CPTTRS_F77  F77_FUNC(cpttrs,CPTTRS)
00497 #define CGETRI_F77  F77_FUNC(cgetri,CGETRI)
00498 #define CGERFS_F77  F77_FUNC(cgerfs,CGERFS)
00499 #define CGECON_F77  F77_FUNC(cgecon,CGECON)
00500 #define CGESVX_F77  F77_FUNC(cgesvx,CGESVX)
00501 #define CGESV_F77   F77_FUNC(cgesv,CGESV)
00502 #define CGEEQU_F77  F77_FUNC(cgeequ,CGEEQU)
00503 #define CPOTRF_F77  F77_FUNC(cpotrf,CPOTRF)
00504 #define CPOTRS_F77  F77_FUNC(cpotrs,CPOTRS)
00505 #define CPOTRI_F77  F77_FUNC(cpotri,CPOTRI)
00506 #define CPOCON_F77  F77_FUNC(cpocon,CPOCON)
00507 #define CPOSV_F77   F77_FUNC(cposv,CPOSV)
00508 #define CPOEQU_F77  F77_FUNC(cpoequ,CPOEQU)
00509 #define CPORFS_F77  F77_FUNC(cporfs,CPORFS)
00510 #define CPOSVX_F77  F77_FUNC(cposvx,CPOSVX)
00511 #define CTRTRS_F77  F77_FUNC(ctrtrs,CTRTRS)
00512 #define CGELS_F77   F77_FUNC(cgels,CGELS)
00513 #define CGEEV_F77   F77_FUNC(cgeev,CGEEV)
00514 #define CGEHRD_F77  F77_FUNC(cgehrd,CGEHRD)
00515 #define CHSEQR_F77  F77_FUNC(chseqr,CHSEQR)
00516 #define CTREVC_F77  F77_FUNC(ctrevc,CTREVC)
00517 #define CTREXC_F77  F77_FUNC(ctrexc,CTREXC)
00518 #define CGEES_F77   F77_FUNC(cgees,CGEES)
00519 #define CSTEQR_F77  F77_FUNC(csteqr,CSTEQR)
00520 #define CHEEV_F77   F77_FUNC(cheev,CHEEV)
00521 #define CHEGV_F77   F77_FUNC(chegv,CHEGV)
00522 #define CLARTG_F77  F77_FUNC(clartg,CLARTG)
00523 #define CLARFG_F77  F77_FUNC(clarfg,CLARFG)
00524 #define CLARND_F77  F77_FUNC(clarnd,CLARND)
00525 #define CLARNV_F77  F77_FUNC(clarnv,CLARNV)
00526 
00527 #endif /* HAVE_TEUCHOS_COMPLEX */
00528 
00529 #ifdef __cplusplus
00530 extern "C" {
00531 #endif
00532 
00533 // Double precision LAPACK linear solvers
00534 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);
00535 void PREFIX DGEQRF_F77(const int* m, const int* n, double* a, const int* lda, double* tau, double* work, const int* lwork, int* info);
00536 void PREFIX DGETRF_F77(const int* m, const int* n, double* a, const int* lda, int* ipiv, int* info); 
00537 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);
00538 void PREFIX DGTTRF_F77(const int* n, double* dl, double* d, double* du, double* du2, int* ipiv, int* info); 
00539 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);
00540 void PREFIX DPTTRF_F77(const int* n, double* d, double* e, int* info); 
00541 void PREFIX DPTTRS_F77(const int* n, const int* nrhs, const double* d, const double* e, double* x , const int* ldx, int* info);
00542 void PREFIX DGETRI_F77(const int* n, double* a, const int* lda, const int* ipiv, double* work , const int* lwork, int* info);
00543 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); 
00544 void PREFIX DGESV_F77(const int* n, const int* nrhs, double* a, const int* lda, int* ipiv, double* x , const int* ldx, int* info);
00545 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); 
00546 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);
00547 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_fcd, double* r,
00548 double* c, double* b, const int* ldb, double* x, const int* ldx, double* rcond, double* ferr, double* berr, double* work, int* iwork, int* info);
00549 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);
00550 void PREFIX DPOTRF_F77(Teuchos_fcd, const int* n, double* a, const int* lda, int* info); 
00551 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);
00552 void PREFIX DPOTRI_F77(Teuchos_fcd, const int* n, double* a, const int* lda, int* info); 
00553 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); 
00554 void PREFIX DPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, double*x , const int* ldx, int* info);
00555 void PREFIX DPOEQU_F77(const int* n, const double* a, const int* lda, double* s, double* scond, double* amax, int* info); 
00556 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);
00557 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_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);
00558 void PREFIX DTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, double* a, const int* lda, double* b, const int* ldb, int* info);
00559 
00560 // Single precision LAPACK linear solvers
00561 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);
00562 void PREFIX SGEQRF_F77(const int* m, const int* n, float* a, const int* lda, float* tau, float* work, const int* lwork, int* info);
00563 void PREFIX SGETRF_F77(const int* m, const int* n, float* a, const int* lda, int* ipiv, int* info);
00564 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);
00565 void PREFIX SGTTRF_F77(const int* n, float* dl, float* d, float* du, float* du2, int* ipiv, int* info); 
00566 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);
00567 void PREFIX SPTTRF_F77(const int* n, float* d, float* e, int* info); 
00568 void PREFIX SPTTRS_F77(const int* n, const int* nrhs, const float* d, const float* e, float* x , const int* ldx, int* info);
00569 void PREFIX SGETRI_F77(const int* n, float* a, const int* lda, const int* ipiv, float* work , const int* lwork, int* info);
00570 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); 
00571 void PREFIX SGESV_F77(const int* n, const int* nrhs, float* a, const int* lda, int* ipiv, float* x , const int* ldx, int* info);
00572 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); 
00573 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);
00574 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_fcd, float* r,
00575 float* c, float* b, const int* ldb, float* x, const int* ldx, float* rcond, float* ferr, float* berr, float* work, int* iwork, int* info);
00576 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);
00577 void PREFIX SPOTRF_F77(Teuchos_fcd, const int* n, float* a, const int* lda, int* info); 
00578 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);
00579 void PREFIX SPOTRI_F77(Teuchos_fcd, const int* n, float* a, const int* lda, int* info); 
00580 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); 
00581 void PREFIX SPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, float*x , const int* ldx, int* info);
00582 void PREFIX SPOEQU_F77(const int* n, const float* a, const int* lda, float* s, float* scond, float* amax, int* info); 
00583 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);
00584 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_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);
00585 void PREFIX STRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, float* a, const int* lda, float* b, const int* ldb, int* info);
00586 
00587 // Double precision LAPACK eigen solvers
00588 void PREFIX DSPEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, double* ap, double* w, double* z, const int* ldz, double* work, int* info);
00589 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);
00590 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);
00591 void PREFIX DSTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, double* Z, const int* ldz, double* work, int* info);
00592 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);
00593 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);
00594 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);
00595 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);
00596 void PREFIX DORGHR_F77(const int* n, const int* ilo, const int* ihi, double* a, const int* lda, double* tau, double* work, int* lwork, int* info);
00597 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, int* lwork, int* info);
00598 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);
00599 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);
00600 void PREFIX DTREVC_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(double*,double*), 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); 
00601 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);
00602 
00603 // Single precision LAPACK eigen solvers
00604 void PREFIX SSPEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, float* ap, float* w, float* z, const int* ldz, float* work, int* info);
00605 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);
00606 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);
00607 void PREFIX SSTEQR_F77(Teuchos_fcd, const int* n, float* D, float* E, float* Z, const int* ldz, float* work, int* info);
00608 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);
00609 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);
00610 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);
00611 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);
00612 void PREFIX SORGHR_F77(const int* n, const int* ilo, const int* ihi, float* a, const int* lda, float* tau, float* work, int* lwork, int* info);
00613 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, int* lwork, int* info);
00614 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);
00615 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);
00616 void PREFIX STREVC_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(float*,float*), 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); 
00617 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);
00618 
00619 void PREFIX SLARTG_F77(const float* f, const float* g, float* c, float* s, float* r);
00620 void PREFIX DLARTG_F77(const double* f, const double* g, double* c, double* s, double* r);
00621 
00622 void PREFIX SLARFG_F77(const int* n, float* alpha, float* x, const int* incx, float* tau);
00623 void PREFIX DLARFG_F77(const int* n, double* alpha, double* x, const int* incx, double* tau);
00624 
00625 float PREFIX SLARND_F77(const int* idist, int* seed);
00626 double PREFIX DLARND_F77(const int* idist, int* seed);
00627 
00628 void PREFIX SLARNV_F77(const int* idist, int* seed, const int* n, float* v);
00629 void PREFIX DLARNV_F77(const int* idist, int* seed, const int* n, double* v);
00630 
00631 float PREFIX SLAMCH_F77(Teuchos_fcd);
00632 double PREFIX DLAMCH_F77(Teuchos_fcd);
00633 
00634 #if defined(INTEL_CXML)
00635 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 );
00636 #else
00637 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 );
00638 #endif
00639 
00640 float PREFIX SLAPY2_F77(const float* x, const float* y);
00641 double PREFIX DLAPY2_F77(const double* x, const double* y);
00642 
00643 #ifdef HAVE_TEUCHOS_COMPLEX
00644 
00645 // Double precision complex LAPACK linear solvers
00646 void PREFIX ZGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, complex<double>* a, const int* lda, complex<double>* b, const int* ldb, complex<double>* work, const int* lwork, int* info);
00647 void PREFIX ZGEQRF_F77(const int* m, const int* n, complex<double>* a, const int* lda, complex<double>* tau, complex<double>* work, const int* lwork, int* info);
00648 void PREFIX ZUNGQR_F77(const int* m, const int* n, const int* k, complex<double>* a, const int* lda, const complex<double>* tau, complex<double>* work, const int* lwork, int* info);
00649 void PREFIX ZGETRF_F77(const int* m, const int* n, complex<double>* a, const int* lda, int* ipiv, int* info); 
00650 void PREFIX ZGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<double>* a, const int* lda,const int* ipiv, complex<double>* x , const int* ldx, int* info);
00651 void PREFIX ZGTTRF_F77(const int* n, complex<double>* dl, complex<double>* d, complex<double>* du, complex<double>* du2, int* ipiv, int* info); 
00652 void PREFIX ZGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<double>* dl, const complex<double>* d, const complex<double>* du, const complex<double>* du2, const int* ipiv, complex<double>* x , const int* ldx, int* info);
00653 void PREFIX ZPTTRF_F77(const int* n, complex<double>* d, complex<double>* e, int* info); 
00654 void PREFIX ZPTTRS_F77(const int* n, const int* nrhs, const complex<double>* d, const complex<double>* e, complex<double>* x , const int* ldx, int* info);
00655 void PREFIX ZGETRI_F77(const int* n, complex<double>* a, const int* lda, const int* ipiv, complex<double>* work , const int* lwork, int* info);
00656 void PREFIX ZGECON_F77(Teuchos_fcd norm, const int* n, const complex<double>* a, const int* lda, const double* anorm, double* rcond, complex<double>* work, double* rwork, int* info); 
00657 void PREFIX ZGESV_F77(const int* n, const int* nrhs, complex<double>* a, const int* lda, int* ipiv, complex<double>* x , const int* ldx, int* info);
00658 void PREFIX ZGEEQU_F77(const int* m, const int* n, const complex<double>* a, const int* lda, double* r, double* c, double* rowcnd, double* colcnd, double* amax, int* info); 
00659 void PREFIX ZGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<double>* a, const int* lda, const complex<double>* af, const int* ldaf, const int* ipiv, const complex<double>* b, const int* ldb, complex<double>* x, const int* ldx, double* ferr, double* berr, complex<double>* work, double* iwork, int* info);
00660 void PREFIX ZGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<double>* a, const int* lda, complex<double>* af, const int* ldaf, int* ipiv, Teuchos_fcd, double* r, double* c, complex<double>* b, const int* ldb, complex<double>* x, const int* ldx, double* rcond, double* ferr, double* berr, complex<double>* work, double* iwork, int* info);
00661 void PREFIX ZPOTRF_F77(Teuchos_fcd, const int* n, complex<double>* a, const int* lda, int* info); 
00662 void PREFIX ZPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<double>* a, const int* lda, complex<double>*x , const int* ldx, int* info);
00663 void PREFIX ZPOTRI_F77(Teuchos_fcd, const int* n, complex<double>* a, const int* lda, int* info); 
00664 void PREFIX ZPOCON_F77(Teuchos_fcd, const int* n, const complex<double>* a, const int* lda, const double* anorm, double* rcond, complex<double>* work, double* rwork, int* info); 
00665 void PREFIX ZPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, complex<double>* a, const int* lda, complex<double>*x , const int* ldx, int* info);
00666 void PREFIX ZPOEQU_F77(const int* n, const complex<double>* a, const int* lda, double* s, double* scond, double* amax, int* info); 
00667 void PREFIX ZPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, complex<double>* a, const int* lda, const complex<double>* af, const int* ldaf, const complex<double>* b, const int* ldb, complex<double>* x, const int* ldx, double* ferr, double* berr, complex<double>* work, double* rwork, int* info);
00668 void PREFIX ZPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<double>* a, const int* lda, complex<double>* af, const int* ldaf, Teuchos_fcd, double* s, complex<double>* b, const int* ldb, complex<double>* x, const int* ldx, double* rcond, double* ferr, double* berr, complex<double>* work, double* rwork, int* info);
00669 void PREFIX ZTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<double>* a, const int* lda, complex<double>* b, const int* ldb, int* info);
00670 
00671 // Single precision complex LAPACK linear solvers
00672 void PREFIX CGELS_F77(Teuchos_fcd ch, const int* m, const int* n, const int* nrhs, complex<float>* a, const int* lda, complex<float>* b, const int* ldb, complex<float>* work, const int* lwork, int* info);
00673 void PREFIX CGEQRF_F77(const int* m, const int* n, complex<float>* a, const int* lda, complex<float>* tau, complex<float>* work, const int* lwork, int* info);
00674 void PREFIX CUNGQR_F77(const int* m, const int* n, const int* k, complex<float>* a, const int* lda, const complex<float>* tau, complex<float>* work, const int* lwork, int* info);
00675 void PREFIX CGETRF_F77(const int* m, const int* n, complex<float>* a, const int* lda, int* ipiv, int* info);
00676 void PREFIX CGETRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<float>* a, const int* lda,const int* ipiv, complex<float>* x , const int* ldx, int* info);
00677 void PREFIX CGTTRF_F77(const int* n, complex<float>* dl, complex<float>* d, complex<float>* du, complex<float>* du2, int* ipiv, int* info); 
00678 void PREFIX CGTTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<float>* dl, const complex<float>* d, const complex<float>* du, const complex<float>* du2, const int* ipiv, complex<float>* x , const int* ldx, int* info);
00679 void PREFIX CPTTRF_F77(const int* n, complex<float>* d, complex<float>* e, int* info); 
00680 void PREFIX CPTTRS_F77(const int* n, const int* nrhs, const complex<float>* d, const complex<float>* e, complex<float>* x , const int* ldx, int* info);
00681 void PREFIX CGETRI_F77(const int* n, complex<float>* a, const int* lda, const int* ipiv, complex<float>* work , const int* lwork, int* info);
00682 void PREFIX CGECON_F77(Teuchos_fcd norm, const int* n, const complex<float>* a, const int* lda, const float* anorm, float* rcond, complex<float>* work, float* rwork, int* info); 
00683 void PREFIX CGESV_F77(const int* n, const int* nrhs, complex<float>* a, const int* lda, int* ipiv, complex<float>* x, const int* ldx, int* info);
00684 void PREFIX CGEEQU_F77(const int* m, const int* n, const complex<float>* a, const int* lda, float* r, float* c, float* rowcnd, float* colcnd, float* amax, int* info); 
00685 void PREFIX CGERFS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<float>* a, const int* lda, const complex<float>* af, const int* ldaf, const int* ipiv, const complex<float>* b, const int* ldb, complex<float>* x, const int* ldx, float* ferr, float* berr, complex<float>* work, float* rwork, int* info);
00686 void PREFIX CGESVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<float>* a, const int* lda, complex<float>* af, const int* ldaf, int* ipiv, Teuchos_fcd, float* r, float* c, complex<float>* b, const int* ldb, complex<float>* x, const int* ldx, float* rcond, float* ferr, float* berr, complex<float>* work, float* rwork, int* info);
00687 void PREFIX CPOTRF_F77(Teuchos_fcd, const int* n, complex<float>* a, const int* lda, int* info); 
00688 void PREFIX CPOTRS_F77(Teuchos_fcd, const int* n, const int* nrhs, const complex<float>* a, const int* lda, complex<float>*x , const int* ldx, int* info);
00689 void PREFIX CPOTRI_F77(Teuchos_fcd, const int* n, complex<float>* a, const int* lda, int* info); 
00690 void PREFIX CPOCON_F77(Teuchos_fcd, const int* n, const complex<float>* a, const int* lda, const float* anorm, float* rcond, complex<float>* work, float* rwork, int* info); 
00691 void PREFIX CPOSV_F77(Teuchos_fcd, const int* n, const int* nrhs, complex<float>* a, const int* lda, complex<float>*x , const int* ldx, int* info);
00692 void PREFIX CPOEQU_F77(const int* n, const complex<float>* a, const int* lda, float* s, float* scond, float* amax, int* info); 
00693 void PREFIX CPORFS_F77(Teuchos_fcd, const int* n, const int* nrhs, complex<float>* a, const int* lda, const complex<float>* af, const int* ldaf, const complex<float>* b, const int* ldb, complex<float>* x, const int* ldx, float* ferr, float* berr, complex<float>* work, float* rwork, int* info);
00694 void PREFIX CPOSVX_F77(Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<float>* a, const int* lda, complex<float>* af, const int* ldaf, Teuchos_fcd, float* s, complex<float>* b, const int* ldb, complex<float>* x, const int* ldx, float* rcond, float* ferr, float* berr, complex<float>* work, float* rwork, int* info);
00695 void PREFIX CTRTRS_F77(Teuchos_fcd, Teuchos_fcd, Teuchos_fcd, const int* n, const int* nrhs, complex<float>* a, const int* lda, complex<float>* b, const int* ldb, int* info);
00696 
00697 // Double precision complex LAPACK eigen solvers
00698 void PREFIX ZSTEQR_F77(Teuchos_fcd, const int* n, double* D, double* E, complex<double>* Z, const int* ldz, complex<double>* work, int* info);
00699 void PREFIX ZHEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, complex<double>* a, const int* lda, double* w, complex<double>* work, const int* lwork, double* rwork, int* info);
00700 void PREFIX ZHEGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, complex<double>* a, const int* lda, complex<double>* B, const int* ldb, double* w, complex<double>* work, const int* lwork, double *rwork, int* info);
00701 void PREFIX ZGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, complex<double>* a, const int* lda, complex<double>* w, complex<double>* vl, const int* ldvl, complex<double>* vr, const int* ldvr, complex<double>* work, const int* lwork, double* rwork, int* info);
00702 void PREFIX ZGEHRD_F77(const int* n, const int* ilo, const int* ihi, complex<double>* A, const int* lda, complex<double>* tau, complex<double>* work, const int* lwork, int* info);
00703 void PREFIX ZHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, complex<double>* h, const int* ldh, complex<double>* w, complex<double>* z, const int* ldz, complex<double>* work, const int* lwork, int* info);
00704 void PREFIX ZGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(complex<double>*), const int* n, complex<double>* a, const int* lda, int* sdim, complex<double>* w, complex<double>* vs, const int* ldvs, complex<double>* work, const int* lwork, double* rwork, int* bwork, int* info);
00705 void PREFIX ZTREVC_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(complex<double>*), const int* n, const complex<double>* t, const int* ldt, complex<double>* vl, const int* ldvl, complex<double>* vr, const int* ldvr, const int* mm, int* m, complex<double>* work, double* rwork, int* info); 
00706 void PREFIX ZTREXC_F77(Teuchos_fcd, const int* n, complex<double>* t, const int* ldt, complex<double>* q, const int* ldq, int* ifst, int* ilst, int* info);
00707 
00708 // Single precision complex LAPACK eigen solvers
00709 void PREFIX CSTEQR_F77(Teuchos_fcd, const int* n, complex<float>* D, complex<float>* E, complex<float>* Z, const int* ldz, complex<float>* work, int* info);
00710 void PREFIX CHEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, complex<float>* a, const int* lda, float* w, complex<float>* work, const int* lwork, float* rwork, int* info);
00711 void PREFIX CHEGV_F77(const int* itype, Teuchos_fcd, Teuchos_fcd, const int* n, complex<float>* a, const int* lda, complex<float>* B, const int* ldb, float* w, complex<float>* work, const int* lwork, float *rwork, int* info);
00712 void PREFIX CGEEV_F77(Teuchos_fcd, Teuchos_fcd, const int* n, complex<float>* a, const int* lda, complex<float>* wr, complex<float>* vl, const int* ldvl, complex<float>* vr, const int* ldvr, complex<float>* work, const int* lwork, float* rwork, int* info);
00713 void PREFIX CGEHRD_F77(const int* n, const int* ilo, const int* ihi, complex<float>* A, const int* lda, complex<float>* tau, complex<float>* work, const int* lwork, int* info);
00714 void PREFIX CHSEQR_F77(Teuchos_fcd job, Teuchos_fcd, const int* n, const int* ilo, const int* ihi, complex<float>* h, const int* ldh, complex<float>* w, complex<float>* z, const int* ldz, complex<float>* work, const int* lwork, int* info);
00715 void PREFIX CGEES_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(complex<float>*), const int* n, complex<float>* a, const int* lda, int* sdim, complex<float>* w, complex<float>* vs, const int* ldvs, complex<float>* work, const int* lwork, float* rwork, int* bwork, int* info);
00716 void PREFIX CTREVC_F77(Teuchos_fcd, Teuchos_fcd, int (*ptr2func)(complex<float>*), const int* n, const complex<float>* t, const int* ldt, complex<float>* vl, const int* ldvl, complex<float>* vr, const int* ldvr, const int* mm, int* m, complex<float>* work, float* rwork, int* info); 
00717 void PREFIX CTREXC_F77(Teuchos_fcd, const int* n, complex<float>* t, const int* ldt, complex<float>* q, const int* ldq, int* ifst, int* ilst, int* info);
00718 
00719 void PREFIX CLARTG_F77(const complex<float>* f, const complex<float>* g, float* c, complex<float>* s, complex<float>* r);
00720 void PREFIX ZLARTG_F77(const complex<double>* f, const complex<double>* g, double* c, complex<double>* s, complex<double>* r);
00721 
00722 void PREFIX CLARFG_F77(const int* n, complex<float>* alpha, complex<float>* x, const int* incx, complex<float>* tau);
00723 void PREFIX ZLARFG_F77(const int* n, complex<double>* alpha, complex<double>* x, const int* incx, complex<double>* tau);
00724 
00725 complex<float> PREFIX CLARND_F77(const int* idist, int* seed);
00726 complex<double> PREFIX ZLARND_F77(const int* idist, int* seed);
00727 
00728 void PREFIX CLARNV_F77(const int* idist, int* seed, const int* n, complex<float>* v);
00729 void PREFIX ZLARNV_F77(const int* idist, int* seed, const int* n, complex<double>* v);
00730 
00731 #endif /* HAVE_TEUCHOS_COMPLEX */
00732 
00733 #ifdef __cplusplus
00734 }
00735 #endif
00736 
00737 #endif // end of TEUCHOS_LAPACK_WRAPPERS_HPP_

Generated on Thu Sep 18 12:30:30 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1