42 #ifndef _TEUCHOS_LAPACK_HPP_
43 #define _TEUCHOS_LAPACK_HPP_
92 static inline T
notDefined() {
return T::LAPACK_routine_not_defined_for_this_type(); }
95 template<
typename OrdinalType,
typename ScalarType>
119 void PTTRF(
const OrdinalType
n, ScalarType* d, ScalarType* e, OrdinalType* info)
const;
122 void PTTRS(
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType* d,
const ScalarType* e, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
125 void POTRF(
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* info)
const;
128 void POTRS(
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
131 void POTRI(
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* info)
const;
135 void POCON(
const char UPLO,
const OrdinalType
n,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
138 void POSV(
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
144 void PORFS(
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
147 void POSVX(
const char FACT,
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType* AF,
const OrdinalType ldaf,
char EQUED, ScalarType* S, ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* rcond, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
154 void GELS(
const char TRANS,
const OrdinalType m,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
189 void GELSS(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb,
MagnitudeType* S,
const MagnitudeType rcond, OrdinalType* rank, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* info)
const;
192 void GELSS(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* S,
const ScalarType rcond, OrdinalType* rank, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
195 void GGLSE(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType p, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType*
C, ScalarType*
D, ScalarType* X, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
198 void GEQRF(
const OrdinalType m,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
201 void GETRF(
const OrdinalType m,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* IPIV, OrdinalType* info)
const;
204 void GETRS(
const char TRANS,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
207 void LASCL(
const char TYPE,
const OrdinalType kl,
const OrdinalType ku,
const MagnitudeType cfrom,
const MagnitudeType cto,
const OrdinalType m,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* info)
const;
211 GEQP3(
const OrdinalType m,
212 const OrdinalType
n, ScalarType*
A,
213 const OrdinalType lda,
217 const OrdinalType lwork,
219 OrdinalType* info )
const;
223 LASWP (
const OrdinalType N,
225 const OrdinalType LDA,
226 const OrdinalType K1,
227 const OrdinalType K2,
228 const OrdinalType IPIV[],
229 const OrdinalType INCX)
const;
232 void GBTRF(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType kl,
const OrdinalType ku, ScalarType*
A,
const OrdinalType lda, OrdinalType* IPIV, OrdinalType* info)
const;
235 void GBTRS(
const char TRANS,
const OrdinalType
n,
const OrdinalType kl,
const OrdinalType ku,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
238 void GTTRF(
const OrdinalType
n, ScalarType* dl, ScalarType* d, ScalarType* du, ScalarType* du2, OrdinalType* IPIV, OrdinalType* info)
const;
241 void GTTRS(
const char TRANS,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType* dl,
const ScalarType* d,
const ScalarType* du,
const ScalarType* du2,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
244 void GETRI(
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
251 LATRS (
const char UPLO,
257 const OrdinalType LDA,
261 OrdinalType* INFO)
const;
264 void GECON(
const char NORM,
const OrdinalType
n,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
267 void GBCON(
const char NORM,
const OrdinalType
n,
const OrdinalType kl,
const OrdinalType ku,
const ScalarType*
A,
const OrdinalType lda, OrdinalType* IPIV,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
273 void GESV(
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
276 void GEEQU(
const OrdinalType m,
const OrdinalType
n,
const ScalarType*
A,
const OrdinalType lda, ScalarType* R, ScalarType*
C, ScalarType* rowcond, ScalarType* colcond, ScalarType* amax, OrdinalType* info)
const;
279 void GERFS(
const char TRANS,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const OrdinalType* IPIV,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
282 void GBEQU(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType kl,
const OrdinalType ku,
const ScalarType*
A,
const OrdinalType lda,
MagnitudeType* R,
MagnitudeType*
C,
MagnitudeType* rowcond,
MagnitudeType* colcond,
MagnitudeType* amax, OrdinalType* info)
const;
285 void GBRFS(
const char TRANS,
const OrdinalType
n,
const OrdinalType kl,
const OrdinalType ku,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const OrdinalType* IPIV,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
288 void GESVX(
const char FACT,
const char TRANS,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType* AF,
const OrdinalType ldaf, OrdinalType* IPIV,
char EQUED, ScalarType* R, ScalarType*
C, ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* rcond, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const;
293 void SYTRD(
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType*
D, ScalarType*
E, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
296 void GEHRD(
const OrdinalType
n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType*
A,
const OrdinalType lda, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
299 void TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const;
302 void TRTRI(
const char UPLO,
const char DIAG,
const OrdinalType
n,
const ScalarType*
A,
const OrdinalType lda, OrdinalType* info)
const;
310 void SPEV(
const char JOBZ,
const char UPLO,
const OrdinalType
n, ScalarType* AP, ScalarType* W, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK, OrdinalType* info)
const;
315 void SYEV(
const char JOBZ,
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType* W, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
320 void SYGV(
const OrdinalType itype,
const char JOBZ,
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* W, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
325 void HEEV(
const char JOBZ,
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda,
MagnitudeType* W, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* info)
const;
330 void HEGV(
const OrdinalType itype,
const char JOBZ,
const char UPLO,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb,
MagnitudeType* W, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType *RWORK, OrdinalType* info)
const;
333 void STEQR(
const char COMPZ,
const OrdinalType
n, ScalarType*
D, ScalarType*
E, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK, OrdinalType* info)
const;
338 void HSEQR(
const char JOB,
const char COMPZ,
const OrdinalType
n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType* H,
const OrdinalType ldh, ScalarType* WR, ScalarType* WI, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
344 void GEES(
const char JOBVS,
const char SORT, OrdinalType (*ptr2func)(ScalarType*, ScalarType*),
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* sdim, ScalarType* WR, ScalarType* WI, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* BWORK, OrdinalType* info)
const;
349 void GEES(
const char JOBVS,
const char SORT, OrdinalType (*ptr2func)(ScalarType*),
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* sdim, ScalarType* W, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* BWORK, OrdinalType* info)
const;
354 void GEES(
const char JOBVS,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType* sdim,
MagnitudeType* WR,
MagnitudeType* WI, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* BWORK, OrdinalType* info)
const;
357 void GEEV(
const char JOBVL,
const char JOBVR,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType* WR, ScalarType* WI, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
363 void GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType* WR, ScalarType* WI, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, OrdinalType* ilo, OrdinalType* ihi,
MagnitudeType* SCALE,
MagnitudeType* abnrm,
MagnitudeType* RCONDE,
MagnitudeType* RCONDV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* IWORK, OrdinalType* info)
const;
369 void GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb,
MagnitudeType* ALPHAR,
MagnitudeType* ALPHAI, ScalarType* BETA, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, OrdinalType* ilo, OrdinalType* ihi,
MagnitudeType* LSCALE,
MagnitudeType* RSCALE,
MagnitudeType* abnrm,
MagnitudeType* bbnrm,
MagnitudeType* RCONDE,
MagnitudeType* RCONDV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* IWORK, OrdinalType* BWORK, OrdinalType* info)
const;
374 void GGEV(
const char JOBVL,
const char JOBVR,
const OrdinalType
n, ScalarType *
A,
const OrdinalType lda, ScalarType *
B,
const OrdinalType ldb,
MagnitudeType *ALPHAR,
MagnitudeType *ALPHAI, ScalarType *BETA, ScalarType *VL,
const OrdinalType ldvl, ScalarType *VR,
const OrdinalType ldvr, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *info)
const;
380 void TRSEN(
const char JOB,
const char COMPQ,
const OrdinalType *SELECT,
const OrdinalType
n, ScalarType *T,
const OrdinalType ldt, ScalarType *Q,
const OrdinalType ldq,
MagnitudeType *WR,
MagnitudeType *WI, OrdinalType *M, ScalarType *S,
MagnitudeType *SEP, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *IWORK,
const OrdinalType liwork, OrdinalType *info )
const;
386 void TGSEN(
const OrdinalType ijob,
const OrdinalType wantq,
const OrdinalType wantz,
const OrdinalType *SELECT,
const OrdinalType
n, ScalarType *
A,
const OrdinalType lda, ScalarType *
B,
const OrdinalType ldb,
MagnitudeType *ALPHAR,
MagnitudeType *ALPHAI,
MagnitudeType *BETA, ScalarType *Q,
const OrdinalType ldq, ScalarType *Z,
const OrdinalType ldz, OrdinalType *M,
MagnitudeType *PL,
MagnitudeType *PR,
MagnitudeType *DIF, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *IWORK,
const OrdinalType liwork, OrdinalType *info )
const;
392 void GGES(
const char JOBVL,
const char JOBVR,
const char SORT, OrdinalType (*ptr2func)(ScalarType *, ScalarType *, ScalarType *),
const OrdinalType
n, ScalarType *
A,
const OrdinalType lda, ScalarType *
B,
const OrdinalType ldb, OrdinalType *sdim,
MagnitudeType *ALPHAR,
MagnitudeType *ALPHAI,
MagnitudeType *BETA, ScalarType *VL,
const OrdinalType ldvl, ScalarType *VR,
const OrdinalType ldvr, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *BWORK, OrdinalType *info )
const;
399 void GESVD(
const char JOBU,
const char JOBVT,
const OrdinalType m,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda,
MagnitudeType* S, ScalarType* U,
const OrdinalType ldu, ScalarType* V,
const OrdinalType ldv, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* info)
const;
416 void ORMQR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType
n,
const OrdinalType k, ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType*
C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
426 void UNMQR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType
n,
const OrdinalType k, ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType*
C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
437 void ORGQR(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType k, ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
447 void UNGQR(
const OrdinalType m,
const OrdinalType
n,
const OrdinalType k, ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
452 void ORGHR(
const OrdinalType
n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
457 void ORMHR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType
n,
const OrdinalType ilo,
const OrdinalType ihi,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType*
C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const;
465 void TREVC(
const char SIDE,
const char HOWMNY, OrdinalType* select,
const OrdinalType
n,
const ScalarType* T,
const OrdinalType ldt, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType* m, ScalarType* WORK, OrdinalType* info)
const;
470 void TREVC(
const char SIDE,
const OrdinalType
n,
const ScalarType* T,
const OrdinalType ldt, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType* m, ScalarType* WORK,
MagnitudeType* RWORK, OrdinalType* info)
const;
475 void TREXC(
const char COMPQ,
const OrdinalType
n, ScalarType* T,
const OrdinalType ldt, ScalarType* Q,
const OrdinalType ldq, OrdinalType ifst, OrdinalType ilst, ScalarType* WORK, OrdinalType* info)
const;
480 void TGEVC(
const char SIDE,
const char HOWMNY,
const OrdinalType *SELECT,
const OrdinalType
n, ScalarType *S,
const OrdinalType lds, ScalarType *P,
const OrdinalType ldp, ScalarType *VL,
const OrdinalType ldvl, ScalarType *VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType *M, ScalarType *WORK, OrdinalType *info)
const;
489 void LARTG(
const ScalarType
f,
const ScalarType
g,
MagnitudeType* c, ScalarType* s, ScalarType* r )
const;
492 void LARFG(
const OrdinalType
n, ScalarType* alpha, ScalarType* x,
const OrdinalType incx, ScalarType* tau )
const;
500 void GEBAL(
const char JOBZ,
const OrdinalType
n, ScalarType*
A,
const OrdinalType lda, OrdinalType ilo, OrdinalType ihi,
MagnitudeType* scale, OrdinalType* info)
const;
503 void GEBAK(
const char JOBZ,
const char SIDE,
const OrdinalType
n,
const OrdinalType ilo,
const OrdinalType ihi,
const MagnitudeType* scale ,
const OrdinalType m, ScalarType* V,
const OrdinalType ldv, OrdinalType* info)
const;
509 ScalarType
LARND(
const OrdinalType idist, OrdinalType* seed )
const;
513 void LARNV(
const OrdinalType idist, OrdinalType* seed,
const OrdinalType
n, ScalarType* v )
const;
521 ScalarType
LAMCH(
const char CMACH)
const;
527 OrdinalType
ILAENV(
const OrdinalType ispec,
const std::string& NAME,
const std::string& OPTS,
const OrdinalType N1 = -1,
const OrdinalType N2 = -1,
const OrdinalType N3 = -1,
const OrdinalType N4 = -1 )
const;
535 ScalarType
LAPY2(
const ScalarType x,
const ScalarType y)
const;
544 template<
typename OrdinalType,
typename ScalarType>
550 template<
typename OrdinalType,
typename ScalarType>
556 template<
typename OrdinalType,
typename ScalarType>
562 template<
typename OrdinalType,
typename ScalarType>
563 void LAPACK<OrdinalType, ScalarType>::POTRS(
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs,
const ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
568 template<
typename OrdinalType,
typename ScalarType>
574 template<
typename OrdinalType,
typename ScalarType>
575 void LAPACK<OrdinalType, ScalarType>::POCON(
const char UPLO,
const OrdinalType
n,
const ScalarType*
A,
const OrdinalType lda,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
580 template<
typename OrdinalType,
typename ScalarType>
581 void LAPACK<OrdinalType, ScalarType>::POSV(
const char UPLO,
const OrdinalType
n,
const OrdinalType nrhs, ScalarType*
A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
586 template<
typename OrdinalType,
typename ScalarType>
614 MagnitudeType smin = S[0];
616 for (OrdinalType i=0; i<
n; ++i) {
624 for (OrdinalType i=0; i<
n; ++i) {
630 for (OrdinalType i=0; i<
n; ++i) {
638 template<
typename OrdinalType,
typename ScalarType>
639 void LAPACK<OrdinalType, ScalarType>::PORFS(
const char UPLO,
const OrdinalType n,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
644 template<
typename OrdinalType,
typename ScalarType>
645 void LAPACK<OrdinalType, ScalarType>::POSVX(
const char FACT,
const char UPLO,
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, ScalarType* AF,
const OrdinalType ldaf,
char EQUED, ScalarType* S, ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* rcond, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
650 template<
typename OrdinalType,
typename ScalarType>
651 void LAPACK<OrdinalType,ScalarType>::GELS(
const char TRANS,
const OrdinalType m,
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
656 template<
typename OrdinalType,
typename ScalarType>
657 void LAPACK<OrdinalType, ScalarType>::GELSS(
const OrdinalType m,
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb,
MagnitudeType* S,
const MagnitudeType rcond, OrdinalType* rank, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType* RWORK, OrdinalType* info)
const
662 template<
typename OrdinalType,
typename ScalarType>
663 void LAPACK<OrdinalType,ScalarType>::GELSS(
const OrdinalType m,
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* S,
const ScalarType rcond, OrdinalType* rank, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
668 template<
typename OrdinalType,
typename ScalarType>
669 void LAPACK<OrdinalType,ScalarType>::GGLSE(
const OrdinalType m,
const OrdinalType n,
const OrdinalType p, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType*
C, ScalarType*
D, ScalarType* X, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
674 template<
typename OrdinalType,
typename ScalarType>
675 void LAPACK<OrdinalType,ScalarType>::GEQRF(
const OrdinalType m,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
680 template<
typename OrdinalType,
typename ScalarType>
686 template<
typename OrdinalType,
typename ScalarType>
687 void LAPACK<OrdinalType,ScalarType>::GETRS(
const char TRANS,
const OrdinalType n,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
692 template<
typename OrdinalType,
typename ScalarType>
693 void LAPACK<OrdinalType,ScalarType>::LASCL(
const char TYPE,
const OrdinalType kl,
const OrdinalType ku,
const MagnitudeType cfrom,
const MagnitudeType cto,
const OrdinalType m,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, OrdinalType* info)
const
709 MagnitudeType cfromc = cfrom;
710 MagnitudeType ctoc = cto;
711 MagnitudeType cfrom1;
716 cfrom1 = cfromc*smlnum;
717 if (cfrom1 == cfromc) {
723 cto1 = ctoc / bignum;
743 for (j=0; j<
n; j++) {
745 for (i=0; i<m; i++) { *ptr = mul * (*ptr); ptr++; }
751 template<
typename OrdinalType,
typename ScalarType>
754 GEQP3 (
const OrdinalType m,
757 const OrdinalType lda,
761 const OrdinalType lwork,
762 MagnitudeType* RWORK,
763 OrdinalType* info)
const
768 template<
typename OrdinalType,
typename ScalarType>
771 LASWP (
const OrdinalType N,
773 const OrdinalType LDA,
774 const OrdinalType K1,
775 const OrdinalType K2,
776 const OrdinalType IPIV[],
777 const OrdinalType INCX)
const
782 template<
typename OrdinalType,
typename ScalarType>
783 void LAPACK<OrdinalType,ScalarType>::GBTRF(
const OrdinalType m,
const OrdinalType n,
const OrdinalType kl,
const OrdinalType ku, ScalarType* A,
const OrdinalType lda, OrdinalType* IPIV, OrdinalType* info)
const
788 template<
typename OrdinalType,
typename ScalarType>
789 void LAPACK<OrdinalType,ScalarType>::GBTRS(
const char TRANS,
const OrdinalType n,
const OrdinalType kl,
const OrdinalType ku,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
794 template<
typename OrdinalType,
typename ScalarType>
800 template<
typename OrdinalType,
typename ScalarType>
801 void LAPACK<OrdinalType,ScalarType>::GTTRS(
const char TRANS,
const OrdinalType n,
const OrdinalType nrhs,
const ScalarType* dl,
const ScalarType* d,
const ScalarType* du,
const ScalarType* du2,
const OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
806 template<
typename OrdinalType,
typename ScalarType>
807 void LAPACK<OrdinalType,ScalarType>::GETRI(
const OrdinalType n, ScalarType* A,
const OrdinalType lda,
const OrdinalType* IPIV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
812 template<
typename OrdinalType,
typename ScalarType>
815 LATRS (
const char UPLO,
821 const OrdinalType LDA,
823 MagnitudeType* SCALE,
824 MagnitudeType* CNORM,
825 OrdinalType* INFO)
const
830 template<
typename OrdinalType,
typename ScalarType>
831 void LAPACK<OrdinalType,ScalarType>::GECON(
const char NORM,
const OrdinalType n,
const ScalarType* A,
const OrdinalType lda,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
836 template<
typename OrdinalType,
typename ScalarType>
837 void LAPACK<OrdinalType,ScalarType>::GBCON(
const char NORM,
const OrdinalType n,
const OrdinalType kl,
const OrdinalType ku,
const ScalarType* A,
const OrdinalType lda, OrdinalType* IPIV,
const ScalarType anorm, ScalarType* rcond, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
842 template<
typename OrdinalType,
typename ScalarType>
848 template<
typename OrdinalType,
typename ScalarType>
849 void LAPACK<OrdinalType,ScalarType>::GESV(
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, OrdinalType* IPIV, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
854 template<
typename OrdinalType,
typename ScalarType>
855 void LAPACK<OrdinalType,ScalarType>::GEEQU(
const OrdinalType m,
const OrdinalType n,
const ScalarType* A,
const OrdinalType lda, ScalarType* R, ScalarType*
C, ScalarType* rowcond, ScalarType* colcond, ScalarType* amax, OrdinalType* info)
const
877 if (m == 0 || n == 0) {
889 for (OrdinalType i=0; i<m; i++) {
894 for (OrdinalType j=0; j<
n; j++) {
895 for (OrdinalType i=0; i<m; i++) {
901 MagnitudeType rcmin = bignum;
902 MagnitudeType rcmax = mZero;
903 for (OrdinalType i=0; i<m; i++) {
909 if (rcmin == mZero) {
911 for (OrdinalType i=0; i<m; i++) {
917 for (OrdinalType i=0; i<m; i++) {
925 for (OrdinalType j=0; j<
n; j++) {
930 for (OrdinalType j=0; j<
n; j++) {
931 for (OrdinalType i=0; i<m; i++) {
939 for (OrdinalType j=0; j<
n; j++) {
944 if (rcmin == mZero) {
946 for (OrdinalType j=0; j<
n; j++) {
952 for (OrdinalType j=0; j<
n; j++) {
960 template<
typename OrdinalType,
typename ScalarType>
961 void LAPACK<OrdinalType,ScalarType>::GERFS(
const char TRANS,
const OrdinalType n,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const OrdinalType* IPIV,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
966 template<
typename OrdinalType,
typename ScalarType>
967 void LAPACK<OrdinalType,ScalarType>::GBEQU(
const OrdinalType m,
const OrdinalType n,
const OrdinalType kl,
const OrdinalType ku,
const ScalarType* A,
const OrdinalType lda, MagnitudeType* R, MagnitudeType* C, MagnitudeType* rowcond, MagnitudeType* colcond, MagnitudeType* amax, OrdinalType* info)
const
980 }
else if (lda < kl+ku+1) {
993 if (m == 0 || n == 0) {
1005 for (OrdinalType i=0; i<m; i++) {
1010 for (OrdinalType j=0; j<
n; j++) {
1017 MagnitudeType rcmin = bignum;
1018 MagnitudeType rcmax = mZero;
1019 for (OrdinalType i=0; i<m; i++) {
1025 if (rcmin == mZero) {
1027 for (OrdinalType i=0; i<m; i++) {
1033 for (OrdinalType i=0; i<m; i++) {
1041 for (OrdinalType j=0; j<
n; j++) {
1046 for (OrdinalType j=0; j<
n; j++) {
1055 for (OrdinalType j=0; j<
n; j++) {
1060 if (rcmin == mZero) {
1062 for (OrdinalType j=0; j<
n; j++) {
1068 for (OrdinalType j=0; j<
n; j++) {
1076 template<
typename OrdinalType,
typename ScalarType>
1077 void LAPACK<OrdinalType,ScalarType>::GBRFS(
const char TRANS,
const OrdinalType n,
const OrdinalType kl,
const OrdinalType ku,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda,
const ScalarType* AF,
const OrdinalType ldaf,
const OrdinalType* IPIV,
const ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
1082 template<
typename OrdinalType,
typename ScalarType>
1083 void LAPACK<OrdinalType,ScalarType>::GESVX(
const char FACT,
const char TRANS,
const OrdinalType n,
const OrdinalType nrhs, ScalarType* A,
const OrdinalType lda, ScalarType* AF,
const OrdinalType ldaf, OrdinalType* IPIV,
char EQUED, ScalarType* R, ScalarType* C, ScalarType*
B,
const OrdinalType ldb, ScalarType* X,
const OrdinalType ldx, ScalarType* rcond, ScalarType* FERR, ScalarType* BERR, ScalarType* WORK, OrdinalType* IWORK, OrdinalType* info)
const
1088 template<
typename OrdinalType,
typename ScalarType>
1089 void LAPACK<OrdinalType,ScalarType>::SYTRD(
const char UPLO,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType*
D, ScalarType*
E, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1094 template<
typename OrdinalType,
typename ScalarType>
1095 void LAPACK<OrdinalType,ScalarType>::GEHRD(
const OrdinalType n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType* A,
const OrdinalType lda, ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1100 template<
typename OrdinalType,
typename ScalarType>
1101 void LAPACK<OrdinalType,ScalarType>::TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const OrdinalType n,
const OrdinalType nrhs,
const ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* info)
const
1106 template<
typename OrdinalType,
typename ScalarType>
1112 template<
typename OrdinalType,
typename ScalarType>
1113 void LAPACK<OrdinalType,ScalarType>::SPEV(
const char JOBZ,
const char UPLO,
const OrdinalType n, ScalarType* AP, ScalarType* W, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK, OrdinalType* info)
const
1118 template<
typename OrdinalType,
typename ScalarType>
1119 void LAPACK<OrdinalType,ScalarType>::SYEV(
const char JOBZ,
const char UPLO,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType* W, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1124 template<
typename OrdinalType,
typename ScalarType>
1125 void LAPACK<OrdinalType,ScalarType>::SYGV(
const OrdinalType itype,
const char JOBZ,
const char UPLO,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, ScalarType* W, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1130 template<
typename OrdinalType,
typename ScalarType>
1131 void LAPACK<OrdinalType,ScalarType>::HEEV(
const char JOBZ,
const char UPLO,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, MagnitudeType* W, ScalarType* WORK,
const OrdinalType lwork, MagnitudeType* RWORK, OrdinalType* info)
const
1136 template<
typename OrdinalType,
typename ScalarType>
1137 void LAPACK<OrdinalType,ScalarType>::HEGV(
const OrdinalType itype,
const char JOBZ,
const char UPLO,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, MagnitudeType* W, ScalarType* WORK,
const OrdinalType lwork, MagnitudeType* RWORK, OrdinalType* info)
const
1142 template<
typename OrdinalType,
typename ScalarType>
1143 void LAPACK<OrdinalType,ScalarType>::STEQR(
const char COMPZ,
const OrdinalType n, ScalarType*
D, ScalarType*
E, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK, OrdinalType* info)
const
1148 template<
typename OrdinalType,
typename ScalarType>
1149 void LAPACK<OrdinalType, ScalarType>::HSEQR(
const char JOB,
const char COMPZ,
const OrdinalType n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType* H,
const OrdinalType ldh, ScalarType* WR, ScalarType* WI, ScalarType* Z,
const OrdinalType ldz, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1154 template<
typename OrdinalType,
typename ScalarType>
1155 void LAPACK<OrdinalType, ScalarType>::GEES(
const char JOBVS,
const char SORT, OrdinalType (*ptr2func)(ScalarType*, ScalarType*),
const OrdinalType n, ScalarType* A,
const OrdinalType lda, OrdinalType* sdim, ScalarType* WR, ScalarType* WI, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* BWORK, OrdinalType* info)
const
1160 template<
typename OrdinalType,
typename ScalarType>
1161 void LAPACK<OrdinalType, ScalarType>::GEES(
const char JOBVS,
const char SORT, OrdinalType (*ptr2func)(ScalarType*),
const OrdinalType n, ScalarType* A,
const OrdinalType lda, OrdinalType* sdim, ScalarType* W, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType *RWORK, OrdinalType* BWORK, OrdinalType* info)
const
1166 template<
typename OrdinalType,
typename ScalarType>
1167 void LAPACK<OrdinalType, ScalarType>::GEES(
const char JOBVS,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, OrdinalType* sdim,
MagnitudeType* WR,
MagnitudeType* WI, ScalarType* VS,
const OrdinalType ldvs, ScalarType* WORK,
const OrdinalType lwork,
MagnitudeType *RWORK, OrdinalType* BWORK, OrdinalType* info)
const
1172 template<
typename OrdinalType,
typename ScalarType>
1173 void LAPACK<OrdinalType, ScalarType>::GEEV(
const char JOBVL,
const char JOBVR,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType* WR, ScalarType* WI, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1178 template<
typename OrdinalType,
typename ScalarType>
1179 void LAPACK<OrdinalType, ScalarType>::GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType* WR, ScalarType* WI, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, OrdinalType* ilo, OrdinalType* ihi, MagnitudeType* SCALE, MagnitudeType* abnrm, MagnitudeType* RCONDE, MagnitudeType* RCONDV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* IWORK, OrdinalType* info)
const
1184 template<
typename OrdinalType,
typename ScalarType>
1185 void LAPACK<OrdinalType, ScalarType>::GESVD(
const char JOBU,
const char JOBVT,
const OrdinalType m,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, MagnitudeType* S, ScalarType* U,
const OrdinalType ldu, ScalarType* V,
const OrdinalType ldv, ScalarType* WORK,
const OrdinalType lwork, MagnitudeType* RWORK, OrdinalType* info)
const
1190 template<
typename OrdinalType,
typename ScalarType>
1191 void LAPACK<OrdinalType, ScalarType>::GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, MagnitudeType* ALPHAR, MagnitudeType* ALPHAI, ScalarType* BETA, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, OrdinalType* ilo, OrdinalType* ihi, MagnitudeType* LSCALE, MagnitudeType* RSCALE, MagnitudeType* abnrm, MagnitudeType* bbnrm, MagnitudeType* RCONDE, MagnitudeType* RCONDV, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* IWORK, OrdinalType* BWORK, OrdinalType* info)
const
1196 template<
typename OrdinalType,
typename ScalarType>
1197 void LAPACK<OrdinalType, ScalarType>::GGEV(
const char JOBVL,
const char JOBVR,
const OrdinalType n, ScalarType *A,
const OrdinalType lda, ScalarType *
B,
const OrdinalType ldb, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, ScalarType *BETA, ScalarType *VL,
const OrdinalType ldvl, ScalarType *VR,
const OrdinalType ldvr, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *info)
const
1203 template<
typename OrdinalType,
typename ScalarType>
1204 void LAPACK<OrdinalType,ScalarType>::TRSEN(
const char JOB,
const char COMPQ,
const OrdinalType *SELECT,
const OrdinalType n, ScalarType *T,
const OrdinalType ldt, ScalarType *Q,
const OrdinalType ldq, MagnitudeType *WR, MagnitudeType *WI, OrdinalType *M, ScalarType *S, MagnitudeType *SEP, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *IWORK,
const OrdinalType liwork, OrdinalType *info )
const
1210 template<
typename OrdinalType,
typename ScalarType>
1211 void LAPACK<OrdinalType,ScalarType>::TGSEN(
const OrdinalType ijob,
const OrdinalType wantq,
const OrdinalType wantz,
const OrdinalType *SELECT,
const OrdinalType n, ScalarType *A,
const OrdinalType lda, ScalarType *
B,
const OrdinalType ldb, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, MagnitudeType *BETA, ScalarType *Q,
const OrdinalType ldq, ScalarType *Z,
const OrdinalType ldz, OrdinalType *M, MagnitudeType *PL, MagnitudeType *PR, MagnitudeType *DIF, ScalarType *WORK,
const OrdinalType lwork, OrdinalType *IWORK,
const OrdinalType liwork, OrdinalType *info )
const
1217 template<
typename OrdinalType,
typename ScalarType>
1218 void LAPACK<OrdinalType, ScalarType>::GGES(
const char JOBVL,
const char JOBVR,
const char SORT, OrdinalType (*ptr2func)(ScalarType*, ScalarType*, ScalarType*),
const OrdinalType n, ScalarType* A,
const OrdinalType lda, ScalarType*
B,
const OrdinalType ldb, OrdinalType* sdim, MagnitudeType* ALPHAR, MagnitudeType* ALPHAI, MagnitudeType* BETA, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr, ScalarType* WORK,
const OrdinalType lwork, OrdinalType *BWORK, OrdinalType* info )
const
1223 template<
typename OrdinalType,
typename ScalarType>
1224 void LAPACK<OrdinalType, ScalarType>::ORMQR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType n,
const OrdinalType k, ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1229 template<
typename OrdinalType,
typename ScalarType>
1230 void LAPACK<OrdinalType, ScalarType>::UNMQR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType n,
const OrdinalType k, ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1235 template<
typename OrdinalType,
typename ScalarType>
1236 void LAPACK<OrdinalType, ScalarType>::ORGQR(
const OrdinalType m,
const OrdinalType n,
const OrdinalType k, ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1241 template<
typename OrdinalType,
typename ScalarType>
1242 void LAPACK<OrdinalType, ScalarType>::UNGQR(
const OrdinalType m,
const OrdinalType n,
const OrdinalType k, ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1247 template<
typename OrdinalType,
typename ScalarType>
1248 void LAPACK<OrdinalType, ScalarType>::ORGHR(
const OrdinalType n,
const OrdinalType ilo,
const OrdinalType ihi, ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1253 template<
typename OrdinalType,
typename ScalarType>
1254 void LAPACK<OrdinalType, ScalarType>::ORMHR(
const char SIDE,
const char TRANS,
const OrdinalType m,
const OrdinalType n,
const OrdinalType ilo,
const OrdinalType ihi,
const ScalarType* A,
const OrdinalType lda,
const ScalarType* TAU, ScalarType* C,
const OrdinalType ldc, ScalarType* WORK,
const OrdinalType lwork, OrdinalType* info)
const
1259 template<
typename OrdinalType,
typename ScalarType>
1260 void LAPACK<OrdinalType, ScalarType>::TREVC(
const char SIDE,
const char HOWMNY, OrdinalType* select,
const OrdinalType n,
const ScalarType* T,
const OrdinalType ldt, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType* m, ScalarType* WORK, OrdinalType* info)
const
1265 template<
typename OrdinalType,
typename ScalarType>
1266 void LAPACK<OrdinalType, ScalarType>::TREVC(
const char SIDE,
const OrdinalType n,
const ScalarType* T,
const OrdinalType ldt, ScalarType* VL,
const OrdinalType ldvl, ScalarType* VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType* m, ScalarType* WORK,
MagnitudeType* RWORK, OrdinalType* info)
const
1271 template<
typename OrdinalType,
typename ScalarType>
1272 void LAPACK<OrdinalType, ScalarType>::TREXC(
const char COMPQ,
const OrdinalType n, ScalarType* T,
const OrdinalType ldt, ScalarType* Q,
const OrdinalType ldq, OrdinalType ifst, OrdinalType ilst, ScalarType* WORK, OrdinalType* info)
const
1278 template<
typename OrdinalType,
typename ScalarType>
1279 void LAPACK<OrdinalType, ScalarType>::TGEVC(
const char SIDE,
const char HOWMNY,
const OrdinalType *SELECT,
const OrdinalType n, ScalarType *S,
const OrdinalType lds, ScalarType *P,
const OrdinalType ldp, ScalarType *VL,
const OrdinalType ldvl, ScalarType *VR,
const OrdinalType ldvr,
const OrdinalType mm, OrdinalType *M, ScalarType *WORK, OrdinalType *info)
const
1285 template<
typename OrdinalType,
typename ScalarType>
1291 template<
typename OrdinalType,
typename ScalarType>
1292 OrdinalType
LAPACK<OrdinalType, ScalarType>::ILAENV(
const OrdinalType ispec,
const std::string& NAME,
const std::string& OPTS,
const OrdinalType N1,
const OrdinalType N2,
const OrdinalType N3,
const OrdinalType N4 )
const
1297 template<
typename OrdinalType,
typename ScalarType>
1303 template<
typename OrdinalType,
typename ScalarType>
1309 template<
typename OrdinalType,
typename ScalarType>
1315 template<
typename OrdinalType,
typename ScalarType>
1316 void LAPACK<OrdinalType, ScalarType>::GEBAL(
const char JOBZ,
const OrdinalType n, ScalarType* A,
const OrdinalType lda, OrdinalType ilo, OrdinalType ihi, MagnitudeType* scale, OrdinalType* info )
const
1322 template<
typename OrdinalType,
typename ScalarType>
1323 void LAPACK<OrdinalType, ScalarType>::GEBAK(
const char JOBZ,
const char SIDE,
const OrdinalType n,
const OrdinalType ilo,
const OrdinalType ihi,
const MagnitudeType* scale,
const OrdinalType m, ScalarType* V,
const OrdinalType ldv, OrdinalType* info )
const
1328 template<
typename OrdinalType,
typename ScalarType>
1334 template<
typename OrdinalType,
typename ScalarType>
1342 #ifndef DOXYGEN_SHOULD_SKIP_THIS
1350 inline LAPACK(
void) {}
1351 inline LAPACK(
const LAPACK<int, float>& lapack) {}
1352 inline virtual ~LAPACK(
void) {}
1355 void POTRF(
const char UPLO,
const int n,
float* A,
const int lda,
int * info)
const;
1356 void POTRS(
const char UPLO,
const int n,
const int nrhs,
const float* A,
const int lda,
float*
B,
const int ldb,
int* info)
const;
1357 void PTTRF(
const int n,
float* d,
float* e,
int* info)
const;
1358 void PTTRS(
const int n,
const int nrhs,
const float* d,
const float* e,
float*
B,
const int ldb,
int* info)
const;
1359 void POTRI(
const char UPLO,
const int n,
float* A,
const int lda,
int* info)
const;
1360 void POCON(
const char UPLO,
const int n,
const float* A,
const int lda,
const float anorm,
float* rcond,
float* WORK,
int* IWORK,
int* info)
const;
1361 void POSV(
const char UPLO,
const int n,
const int nrhs,
float* A,
const int lda,
float*
B,
const int ldb,
int* info)
const;
1362 void POEQU(
const int n,
const float* A,
const int lda,
float* S,
float* scond,
float* amax,
int* info)
const;
1363 void PORFS(
const char UPLO,
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)
const;
1364 void POSVX(
const char FACT,
const char UPLO,
const int n,
const int nrhs,
float* A,
const int lda,
float* AF,
const int ldaf,
char EQUED,
float* S,
float*
B,
const int ldb,
float* X,
const int ldx,
float* rcond,
float* FERR,
float* BERR,
float* WORK,
int* IWORK,
int* info)
const;
1367 void GELS(
const char TRANS,
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)
const;
1368 void GELSS(
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,
float* RWORK,
int* info)
const;
1369 void GELSS(
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)
const;
1370 void GGLSE(
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)
const;
1371 void GEQRF(
const int m,
const int n,
float* A,
const int lda,
float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1372 void GETRF(
const int m,
const int n,
float* A,
const int lda,
int* IPIV,
int* info)
const;
1373 void GETRS(
const char TRANS,
const int n,
const int nrhs,
const float* A,
const int lda,
const int* IPIV,
float*
B,
const int ldb,
int* info)
const;
1374 void LASCL(
const char TYPE,
const int kl,
const int ku,
const float cfrom,
const float cto,
const int m,
const int n,
float* A,
const int lda,
int* info)
const;
1388 void LASWP (
const int N,
1394 const int INCX)
const;
1396 void GBTRF(
const int m,
const int n,
const int kl,
const int ku,
float* A,
const int lda,
int* IPIV,
int* info)
const;
1397 void GBTRS(
const char TRANS,
const int n,
const int kl,
const int ku,
const int nrhs,
const float* A,
const int lda,
const int* IPIV,
float*
B,
const int ldb,
int* info)
const;
1398 void GTTRF(
const int n,
float* dl,
float* d,
float* du,
float* du2,
int* IPIV,
int* info)
const;
1399 void GTTRS(
const char TRANS,
const int n,
const int nrhs,
const float* dl,
const float* d,
const float* du,
const float* du2,
const int* IPIV,
float*
B,
const int ldb,
int* info)
const;
1402 void GETRI(
const int n,
float* A,
const int lda,
const int* IPIV,
float* WORK,
const int lwork,
int* info)
const;
1403 void LATRS (
const char UPLO,
const char TRANS,
const char DIAG,
const char NORMIN,
const int N,
float* A,
const int LDA,
float* X,
float* SCALE,
float* CNORM,
int* INFO)
const;
1404 void GECON(
const char NORM,
const int n,
const float* A,
const int lda,
const float anorm,
float* rcond,
float* WORK,
int* IWORK,
int* info)
const;
1405 void GBCON(
const char 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)
const;
1406 float LANGB(
const char NORM,
const int n,
const int kl,
const int ku,
const float* A,
const int lda,
float* WORK)
const;
1407 void GESV(
const int n,
const int nrhs,
float* A,
const int lda,
int* IPIV,
float*
B,
const int ldb,
int* info)
const;
1408 void GEEQU(
const int m,
const int n,
const float* A,
const int lda,
float* R,
float* C,
float* rowcond,
float* colcond,
float* amax,
int* info)
const;
1409 void GERFS(
const char TRANS,
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)
const;
1410 void GBEQU(
const int m,
const int n,
const int kl,
const int ku,
const float* A,
const int lda,
float* R,
float* C,
float* rowcond,
float* colcond,
float* amax,
int* info)
const;
1411 void GBRFS(
const char TRANS,
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)
const;
1412 void GESVX(
const char FACT,
const char TRANS,
const int n,
const int nrhs,
float* A,
const int lda,
float* AF,
const int ldaf,
int* IPIV,
char EQUED,
float* R,
float* C,
float*
B,
const int ldb,
float* X,
const int ldx,
float* rcond,
float* FERR,
float* BERR,
float* WORK,
int* IWORK,
int* info)
const;
1413 void SYTRD(
const char UPLO,
const int n,
float* A,
const int lda,
float*
D,
float*
E,
float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1414 void GEHRD(
const int n,
const int ilo,
const int ihi,
float* A,
const int lda,
float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1415 void TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const int n,
const int nrhs,
const float* A,
const int lda,
float*
B,
const int ldb,
int* info)
const;
1416 void TRTRI(
const char UPLO,
const char DIAG,
const int n,
const float* A,
const int lda,
int* info)
const;
1419 void SPEV(
const char JOBZ,
const char UPLO,
const int n,
float* AP,
float* W,
float* Z,
const int ldz,
float* WORK,
int* info)
const;
1420 void SYEV(
const char JOBZ,
const char UPLO,
const int n,
float* A,
const int lda,
float* W,
float* WORK,
const int lwork,
int* info)
const;
1421 void SYGV(
const int itype,
const char JOBZ,
const char UPLO,
const int n,
float* A,
const int lda,
float*
B,
const int ldb,
float* W,
float* WORK,
const int lwork,
int* info)
const;
1422 void HEEV(
const char JOBZ,
const char UPLO,
const int n,
float* A,
const int lda,
float* W,
float* WORK,
const int lwork,
float* RWORK,
int* info)
const;
1423 void HEGV(
const int itype,
const char JOBZ,
const char UPLO,
const int n,
float* A,
const int lda,
float*
B,
const int ldb,
float* W,
float* WORK,
const int lwork,
float *RWORK,
int* info)
const;
1424 void STEQR(
const char COMPZ,
const int n,
float*
D,
float*
E,
float* Z,
const int ldz,
float* WORK,
int* info)
const;
1427 void HSEQR(
const char JOB,
const char COMPZ,
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)
const;
1428 void GEES(
const char JOBVS,
const char SORT,
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)
const;
1429 void GEES(
const char JOBVS,
const int n,
float* A,
const int lda,
int* sdim,
float* WR,
float* WI,
float* VS,
const int ldvs,
float* WORK,
const int lwork,
float* RWORK,
int* BWORK,
int* info)
const;
1430 void GEEV(
const char JOBVL,
const char JOBVR,
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)
const;
1431 void GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1432 void GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1433 void GGEV(
const char JOBVL,
const char JOBVR,
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)
const;
1434 void TRSEN(
const char JOB,
const char COMPQ,
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 )
const;
1435 void TGSEN(
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 )
const;
1436 void GGES(
const char JOBVL,
const char JOBVR,
const char SORT,
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 )
const;
1439 void GESVD(
const char JOBU,
const char JOBVT,
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,
float* RWORK,
int* info)
const;
1442 void ORMQR(
const char SIDE,
const char TRANS,
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)
const;
1443 void UNMQR(
const char SIDE,
const char TRANS,
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)
const;
1445 void ORGQR(
const int m,
const int n,
const int k,
float* A,
const int lda,
const float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1446 void UNGQR(
const int m,
const int n,
const int k,
float* A,
const int lda,
const float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1447 void ORGHR(
const int n,
const int ilo,
const int ihi,
float* A,
const int lda,
const float* TAU,
float* WORK,
const int lwork,
int* info)
const;
1448 void ORMHR(
const char SIDE,
const char TRANS,
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)
const;
1451 void TREVC(
const char SIDE,
const char HOWMNY,
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)
const;
1452 void TREVC(
const char SIDE,
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,
float *RWORK,
int* info)
const;
1453 void TREXC(
const char COMPQ,
const int n,
float* T,
const int ldt,
float* Q,
const int ldq,
int ifst,
int ilst,
float* WORK,
int* info)
const;
1454 void TGEVC(
const char SIDE,
const char HOWMNY,
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)
const;
1457 void LARTG(
const float f,
const float g,
float* c,
float* s,
float* r )
const;
1458 void LARFG(
const int n,
float* alpha,
float* x,
const int incx,
float* tau )
const;
1461 void GEBAL(
const char JOBZ,
const int n,
float* A,
const int lda,
int ilo,
int ihi,
float* scale,
int* info)
const;
1462 void GEBAK(
const char JOBZ,
const char SIDE,
const int n,
const int ilo,
const int ihi,
const float* scale,
const int m,
float* V,
const int ldv,
int* info)
const;
1465 float LARND(
const int idist,
int* seed )
const;
1466 void LARNV(
const int idist,
int* seed,
const int n,
float* v )
const;
1469 float LAMCH(
const char CMACH)
const;
1470 int ILAENV(
const int ispec,
const std::string& NAME,
const std::string& OPTS,
const int N1 = -1,
const int N2 = -1,
const int N3 = -1,
const int N4 = -1 )
const;
1473 float LAPY2(
const float x,
const float y)
const;
1485 inline LAPACK(
void) {}
1486 inline LAPACK(
const LAPACK<int, double>& lapack) {}
1487 inline virtual ~LAPACK(
void) {}
1490 void PTTRF(
const int n,
double* d,
double* e,
int* info)
const;
1491 void PTTRS(
const int n,
const int nrhs,
const double* d,
const double* e,
double*
B,
const int ldb,
int* info)
const;
1492 void POTRF(
const char UPLO,
const int n,
double* A,
const int lda,
int* info)
const;
1493 void POTRS(
const char UPLO,
const int n,
const int nrhs,
const double* A,
const int lda,
double*
B,
const int ldb,
int* info)
const;
1494 void POTRI(
const char UPLO,
const int n,
double* A,
const int lda,
int* info)
const;
1495 void POCON(
const char UPLO,
const int n,
const double* A,
const int lda,
const double anorm,
double* rcond,
double* WORK,
int* IWORK,
int* info)
const;
1496 void POSV(
const char UPLO,
const int n,
const int nrhs,
double* A,
const int lda,
double*
B,
const int ldb,
int* info)
const;
1497 void POEQU(
const int n,
const double* A,
const int lda,
double* S,
double* scond,
double* amax,
int* info)
const;
1498 void PORFS(
const char UPLO,
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)
const;
1499 void POSVX(
const char FACT,
const char UPLO,
const int n,
const int nrhs,
double* A,
const int lda,
double* AF,
const int ldaf,
char EQUED,
double* S,
double*
B,
const int ldb,
double* X,
const int ldx,
double* rcond,
double* FERR,
double* BERR,
double* WORK,
int* IWORK,
int* info)
const;
1502 void GELS(
const char TRANS,
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)
const;
1503 void GELSS(
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,
double* RWORK,
int* info)
const;
1504 void GELSS(
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)
const;
1505 void GGLSE(
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)
const;
1506 void GEQRF(
const int m,
const int n,
double* A,
const int lda,
double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1507 void GETRF(
const int m,
const int n,
double* A,
const int lda,
int* IPIV,
int* info)
const;
1508 void GETRS(
const char TRANS,
const int n,
const int nrhs,
const double* A,
const int lda,
const int* IPIV,
double*
B,
const int ldb,
int* info)
const;
1509 void LASCL(
const char TYPE,
const int kl,
const int ku,
const double cfrom,
const double cto,
const int m,
const int n,
double* A,
const int lda,
int* info)
const;
1523 void LASWP (
const int N,
1529 const int INCX)
const;
1531 void GBTRF(
const int m,
const int n,
const int kl,
const int ku,
double* A,
const int lda,
int* IPIV,
int* info)
const;
1532 void GBTRS(
const char TRANS,
const int n,
const int kl,
const int ku,
const int nrhs,
const double* A,
const int lda,
const int* IPIV,
double*
B,
const int ldb,
int* info)
const;
1533 void GTTRF(
const int n,
double* dl,
double* d,
double* du,
double* du2,
int* IPIV,
int* info)
const;
1534 void GTTRS(
const char TRANS,
const int n,
const int nrhs,
const double* dl,
const double* d,
const double* du,
const double* du2,
const int* IPIV,
double*
B,
const int ldb,
int* info)
const;
1535 void GETRI(
const int n,
double* A,
const int lda,
const int* IPIV,
double* WORK,
const int lwork,
int* info)
const;
1536 void LATRS (
const char UPLO,
const char TRANS,
const char DIAG,
const char NORMIN,
const int N,
double* A,
const int LDA,
double* X,
double* SCALE,
double* CNORM,
int* INFO)
const;
1537 void GECON(
const char NORM,
const int n,
const double* A,
const int lda,
const double anorm,
double* rcond,
double* WORK,
int* IWORK,
int* info)
const;
1538 void GBCON(
const char 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)
const;
1539 double LANGB(
const char NORM,
const int n,
const int kl,
const int ku,
const double* A,
const int lda,
double* WORK)
const;
1540 void GESV(
const int n,
const int nrhs,
double* A,
const int lda,
int* IPIV,
double*
B,
const int ldb,
int* info)
const;
1541 void GEEQU(
const int m,
const int n,
const double* A,
const int lda,
double* R,
double* C,
double* rowcond,
double* colcond,
double* amax,
int* info)
const;
1542 void GERFS(
const char TRANS,
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)
const;
1543 void GBEQU(
const int m,
const int n,
const int kl,
const int ku,
const double* A,
const int lda,
double* R,
double* C,
double* rowcond,
double* colcond,
double* amax,
int* info)
const;
1544 void GBRFS(
const char TRANS,
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)
const;
1545 void GESVX(
const char FACT,
const char TRANS,
const int n,
const int nrhs,
double* A,
const int lda,
double* AF,
const int ldaf,
int* IPIV,
char EQUED,
double* R,
double* C,
double*
B,
const int ldb,
double* X,
const int ldx,
double* rcond,
double* FERR,
double* BERR,
double* WORK,
int* IWORK,
int* info)
const;
1546 void SYTRD(
const char UPLO,
const int n,
double* A,
const int lda,
double*
D,
double*
E,
double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1547 void GEHRD(
const int n,
const int ilo,
const int ihi,
double* A,
const int lda,
double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1548 void TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const int n,
const int nrhs,
const double* A,
const int lda,
double*
B,
const int ldb,
int* info)
const;
1549 void TRTRI(
const char UPLO,
const char DIAG,
const int n,
const double* A,
const int lda,
int* info)
const;
1552 void SPEV(
const char JOBZ,
const char UPLO,
const int n,
double* AP,
double* W,
double* Z,
const int ldz,
double* WORK,
int* info)
const;
1553 void SYEV(
const char JOBZ,
const char UPLO,
const int n,
double* A,
const int lda,
double* W,
double* WORK,
const int lwork,
int* info)
const;
1554 void SYGV(
const int itype,
const char JOBZ,
const char UPLO,
const int n,
double* A,
const int lda,
double*
B,
const int ldb,
double* W,
double* WORK,
const int lwork,
int* info)
const;
1555 void HEEV(
const char JOBZ,
const char UPLO,
const int n,
double* A,
const int lda,
double* W,
double* WORK,
const int lwork,
double* RWORK,
int* info)
const;
1556 void HEGV(
const int itype,
const char JOBZ,
const char UPLO,
const int n,
double* A,
const int lda,
double*
B,
const int ldb,
double* W,
double* WORK,
const int lwork,
double *RWORK,
int* info)
const;
1557 void STEQR(
const char COMPZ,
const int n,
double*
D,
double*
E,
double* Z,
const int ldz,
double* WORK,
int* info)
const;
1560 void HSEQR(
const char JOB,
const char COMPZ,
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)
const;
1561 void GEES(
const char JOBVS,
const char SORT,
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)
const;
1562 void GEES(
const char JOBVS,
const int n,
double* A,
const int lda,
int* sdim,
double* WR,
double* WI,
double* VS,
const int ldvs,
double* WORK,
const int lwork,
double* RWORK,
int* BWORK,
int* info)
const;
1563 void GEEV(
const char JOBVL,
const char JOBVR,
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)
const;
1564 void GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
const int n,
double* A,
const int lda,
double* WR,
double* WI,
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)
const;
1565 void GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1566 void GGEV(
const char JOBVL,
const char JOBVR,
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)
const;
1567 void TRSEN(
const char JOB,
const char COMPQ,
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 )
const;
1568 void TGSEN(
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 )
const;
1569 void GGES(
const char JOBVL,
const char JOBVR,
const char SORT,
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 )
const;
1573 void GESVD(
const char JOBU,
const char JOBVT,
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,
double* RWORK,
int* info)
const;
1576 void ORMQR(
const char SIDE,
const char TRANS,
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)
const;
1577 void UNMQR(
const char SIDE,
const char TRANS,
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)
const;
1578 void ORGQR(
const int m,
const int n,
const int k,
double* A,
const int lda,
const double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1579 void UNGQR(
const int m,
const int n,
const int k,
double* A,
const int lda,
const double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1580 void ORGHR(
const int n,
const int ilo,
const int ihi,
double* A,
const int lda,
const double* TAU,
double* WORK,
const int lwork,
int* info)
const;
1581 void ORMHR(
const char SIDE,
const char TRANS,
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)
const;
1584 void TREVC(
const char SIDE,
const char HOWMNY,
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)
const;
1585 void TREVC(
const char SIDE,
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,
double* RWORK,
int* info)
const;
1586 void TREXC(
const char COMPQ,
const int n,
double* T,
const int ldt,
double* Q,
const int ldq,
int ifst,
int ilst,
double* WORK,
int* info)
const;
1587 void TGEVC(
const char SIDE,
const char HOWMNY,
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)
const;
1590 void LARTG(
const double f,
const double g,
double* c,
double* s,
double* r )
const;
1591 void LARFG(
const int n,
double* alpha,
double* x,
const int incx,
double* tau )
const;
1594 void GEBAL(
const char JOBZ,
const int n,
double* A,
const int lda,
int ilo,
int ihi,
double* scale,
int* info)
const;
1595 void GEBAK(
const char JOBZ,
const char SIDE,
const int n,
const int ilo,
const int ihi,
const double* scale,
const int m,
double* V,
const int ldv,
int* info)
const;
1598 double LARND(
const int idist,
int* seed )
const;
1599 void LARNV(
const int idist,
int* seed,
const int n,
double* v )
const;
1602 double LAMCH(
const char CMACH)
const;
1603 int ILAENV(
const int ispec,
const std::string& NAME,
const std::string& OPTS,
const int N1 = -1,
const int N2 = -1,
const int N3 = -1,
const int N4 = -1 )
const;
1606 double LAPY2(
const double x,
const double y)
const;
1612 #ifdef HAVE_TEUCHOS_COMPLEX
1620 inline LAPACK(
void) {}
1621 inline LAPACK(
const LAPACK<
int, std::complex<float> >& lapack) {}
1622 inline virtual ~LAPACK(
void) {}
1625 void PTTRF(
const int n, std::complex<float>* d, std::complex<float>* e,
int* info)
const;
1626 void PTTRS(
const int n,
const int nrhs,
const std::complex<float>* d,
const std::complex<float>* e, std::complex<float>*
B,
const int ldb,
int* info)
const;
1627 void POTRF(
const char UPLO,
const int n, std::complex<float>* A,
const int lda,
int* info)
const;
1628 void POTRS(
const char UPLO,
const int n,
const int nrhs,
const std::complex<float>* A,
const int lda, std::complex<float>*
B,
const int ldb,
int* info)
const;
1629 void POTRI(
const char UPLO,
const int n, std::complex<float>* A,
const int lda,
int* info)
const;
1630 void POCON(
const char UPLO,
const int n,
const std::complex<float>* A,
const int lda,
const float anorm,
float* rcond, std::complex<float>* WORK,
float* rwork,
int* info)
const;
1631 void POSV(
const char UPLO,
const int n,
const int nrhs, std::complex<float>* A,
const int lda, std::complex<float>*
B,
const int ldb,
int* info)
const;
1632 void POEQU(
const int n,
const std::complex<float>* A,
const int lda,
float* S,
float* scond,
float* amax,
int* info)
const;
1633 void PORFS(
const char UPLO,
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)
const;
1634 void POSVX(
const char FACT,
const char UPLO,
const int n,
const int nrhs, std::complex<float>* A,
const int lda, std::complex<float>* AF,
const int ldaf,
char EQUED,
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)
const;
1637 void GELS(
const char TRANS,
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)
const;
1638 void GELSS(
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)
const;
1639 void GEQRF(
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)
const;
1640 void UNGQR(
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)
const;
1641 void UNMQR(
const char SIDE,
const char 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)
const;
1642 void GETRF(
const int m,
const int n, std::complex<float>* A,
const int lda,
int* IPIV,
int* info)
const;
1643 void GETRS(
const char TRANS,
const int n,
const int nrhs,
const std::complex<float>* A,
const int lda,
const int* IPIV, std::complex<float>*
B,
const int ldb,
int* info)
const;
1644 void LASCL(
const char TYPE,
const int kl,
const int ku,
const float cfrom,
const float cto,
const int m,
const int n, std::complex<float>* A,
const int lda,
int* info)
const;
1649 std::complex<float>* A,
1652 std::complex<float>* TAU,
1653 std::complex<float>* WORK,
1658 void LASWP (
const int N,
1659 std::complex<float> A[],
1664 const int INCX)
const;
1666 void GBTRF(
const int m,
const int n,
const int kl,
const int ku, std::complex<float>* A,
const int lda,
int* IPIV,
int* info)
const;
1667 void GBTRS(
const char TRANS,
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>*
B,
const int ldb,
int* info)
const;
1668 void GTTRF(
const int n, std::complex<float>* dl, std::complex<float>* d, std::complex<float>* du, std::complex<float>* du2,
int* IPIV,
int* info)
const;
1669 void GTTRS(
const char TRANS,
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>*
B,
const int ldb,
int* info)
const;
1670 void GETRI(
const int n, std::complex<float>* A,
const int lda,
const int* IPIV, std::complex<float>* WORK,
const int lwork,
int* info)
const;
1671 void LATRS (
const char UPLO,
const char TRANS,
const char DIAG,
const char NORMIN,
const int N, std::complex<float>* A,
const int LDA, std::complex<float>* X,
float* SCALE,
float* CNORM,
int* INFO)
const;
1672 void GECON(
const char 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)
const;
1673 void GBCON(
const char 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)
const;
1674 float LANGB(
const char NORM,
const int n,
const int kl,
const int ku,
const std::complex<float>* A,
const int lda,
float* WORK)
const;
1675 void GESV(
const int n,
const int nrhs, std::complex<float>* A,
const int lda,
int* IPIV, std::complex<float>*
B,
const int ldb,
int* info)
const;
1676 void GEEQU(
const int m,
const int n,
const std::complex<float>* A,
const int lda,
float* R,
float* C,
float* rowcond,
float* colcond,
float* amax,
int* info)
const;
1677 void GERFS(
const char TRANS,
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)
const;
1678 void GBEQU(
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* rowcond,
float* colcond,
float* amax,
int* info)
const;
1679 void GBRFS(
const char TRANS,
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)
const;
1680 void GESVX(
const char FACT,
const char TRANS,
const int n,
const int nrhs, std::complex<float>* A,
const int lda, std::complex<float>* AF,
const int ldaf,
int* IPIV,
char EQUED,
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)
const;
1681 void GEHRD(
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)
const;
1682 void TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const int n,
const int nrhs,
const std::complex<float>* A,
const int lda, std::complex<float>*
B,
const int ldb,
int* info)
const;
1683 void TRTRI(
const char UPLO,
const char DIAG,
const int n,
const std::complex<float>* A,
const int lda,
int* info)
const;
1686 void STEQR(
const char COMPZ,
const int n,
float*
D,
float*
E, std::complex<float>* Z,
const int ldz,
float* WORK,
int* info)
const;
1687 void HEEV(
const char JOBZ,
const char UPLO,
const int n, std::complex<float>* A,
const int lda,
float* W, std::complex<float>* WORK,
const int lwork,
float* RWORK,
int* info)
const;
1688 void HEGV(
const int itype,
const char JOBZ,
const char UPLO,
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)
const;
1691 void HSEQR(
const char JOB,
const char COMPZ,
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)
const;
1692 void GEES(
const char JOBVS,
const char SORT,
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)
const;
1693 void GEES(
const char JOBVS,
const int n, std::complex<float>* A,
const int lda,
int* sdim,
float* WR,
float* WI, std::complex<float>* VS,
const int ldvs, std::complex<float>* WORK,
const int lwork,
float* RWORK,
int* BWORK,
int* info)
const;
1694 void GEEV(
const char JOBVL,
const char JOBVR,
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)
const;
1695 void GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1696 void GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1697 void GGEV(
const char JOBVL,
const char JOBVR,
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)
const;
1700 void GESVD(
const char JOBU,
const char JOBVT,
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)
const;
1703 void TREVC(
const char SIDE,
const char HOWMNY,
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)
const;
1704 void TREVC(
const char SIDE,
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)
const;
1705 void TREXC(
const char COMPQ,
const int n, std::complex<float>* T,
const int ldt, std::complex<float>* Q,
const int ldq,
int ifst,
int ilst, std::complex<float>* WORK,
int* info)
const;
1708 void LARTG(
const std::complex<float>
f,
const std::complex<float>
g,
float* c, std::complex<float>* s, std::complex<float>* r )
const;
1709 void LARFG(
const int n, std::complex<float>* alpha, std::complex<float>* x,
const int incx, std::complex<float>* tau )
const;
1712 void GEBAL(
const char JOBZ,
const int n, std::complex<float>* A,
const int lda,
int ilo,
int ihi,
float* scale,
int* info)
const;
1713 void GEBAK(
const char JOBZ,
const char SIDE,
const int n,
const int ilo,
const int ihi,
const float* scale,
const int m, std::complex<float>* V,
const int ldv,
int* info)
const;
1716 std::complex<float> LARND(
const int idist,
int* seed )
const;
1717 void LARNV(
const int idist,
int* seed,
const int n, std::complex<float>* v )
const;
1720 int ILAENV(
const int ispec,
const std::string& NAME,
const std::string& OPTS,
const int N1 = -1,
const int N2 = -1,
const int N3 = -1,
const int N4 = -1 )
const;
1732 inline LAPACK(
void) {}
1733 inline LAPACK(
const LAPACK<
int, std::complex<double> >& lapack) {}
1734 inline virtual ~LAPACK(
void) {}
1737 void PTTRF(
const int n, std::complex<double>* d, std::complex<double>* e,
int* info)
const;
1738 void PTTRS(
const int n,
const int nrhs,
const std::complex<double>* d,
const std::complex<double>* e, std::complex<double>*
B,
const int ldb,
int* info)
const;
1739 void POTRF(
const char UPLO,
const int n, std::complex<double>* A,
const int lda,
int* info)
const;
1740 void POTRS(
const char UPLO,
const int n,
const int nrhs,
const std::complex<double>* A,
const int lda, std::complex<double>*
B,
const int ldb,
int* info)
const;
1741 void POTRI(
const char UPLO,
const int n, std::complex<double>* A,
const int lda,
int* info)
const;
1742 void POCON(
const char UPLO,
const int n,
const std::complex<double>* A,
const int lda,
const double anorm,
double* rcond, std::complex<double>* WORK,
double* RWORK,
int* info)
const;
1743 void POSV(
const char UPLO,
const int n,
const int nrhs, std::complex<double>* A,
const int lda, std::complex<double>*
B,
const int ldb,
int* info)
const;
1744 void POEQU(
const int n,
const std::complex<double>* A,
const int lda,
double* S,
double* scond,
double* amax,
int* info)
const;
1745 void PORFS(
const char UPLO,
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)
const;
1746 void POSVX(
const char FACT,
const char UPLO,
const int n,
const int nrhs, std::complex<double>* A,
const int lda, std::complex<double>* AF,
const int ldaf,
char EQUED,
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)
const;
1749 void GELS(
const char TRANS,
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)
const;
1750 void GELSS(
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)
const;
1751 void GEQRF(
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)
const;
1752 void UNGQR(
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)
const;
1753 void UNMQR(
const char SIDE,
const char 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)
const;
1754 void GETRF(
const int m,
const int n, std::complex<double>* A,
const int lda,
int* IPIV,
int* info)
const;
1755 void GETRS(
const char TRANS,
const int n,
const int nrhs,
const std::complex<double>* A,
const int lda,
const int* IPIV, std::complex<double>*
B,
const int ldb,
int* info)
const;
1756 void LASCL(
const char TYPE,
const int kl,
const int ku,
const double cfrom,
const double cto,
const int m,
const int n, std::complex<double>* A,
const int lda,
int* info)
const;
1761 std::complex<double>* A,
1764 std::complex<double>* TAU,
1765 std::complex<double>* WORK,
1770 void LASWP (
const int N,
1771 std::complex<double> A[],
1776 const int INCX)
const;
1778 void GBTRF(
const int m,
const int n,
const int kl,
const int ku, std::complex<double>* A,
const int lda,
int* IPIV,
int* info)
const;
1779 void GBTRS(
const char TRANS,
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>*
B,
const int ldb,
int* info)
const;
1780 void GTTRF(
const int n, std::complex<double>* dl, std::complex<double>* d, std::complex<double>* du, std::complex<double>* du2,
int* IPIV,
int* info)
const;
1781 void GTTRS(
const char TRANS,
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>*
B,
const int ldb,
int* info)
const;
1782 void GETRI(
const int n, std::complex<double>* A,
const int lda,
const int* IPIV, std::complex<double>* WORK,
const int lwork,
int* info)
const;
1783 void LATRS (
const char UPLO,
const char TRANS,
const char DIAG,
const char NORMIN,
const int N, std::complex<double>* A,
const int LDA, std::complex<double>* X,
double* SCALE,
double* CNORM,
int* INFO)
const;
1784 void GECON(
const char 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)
const;
1785 void GBCON(
const char 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)
const;
1786 double LANGB(
const char NORM,
const int n,
const int kl,
const int ku,
const std::complex<double>* A,
const int lda,
double* WORK)
const;
1787 void GESV(
const int n,
const int nrhs, std::complex<double>* A,
const int lda,
int* IPIV, std::complex<double>*
B,
const int ldb,
int* info)
const;
1788 void GEEQU(
const int m,
const int n,
const std::complex<double>* A,
const int lda,
double* R,
double* C,
double* rowcond,
double* colcond,
double* amax,
int* info)
const;
1789 void GERFS(
const char TRANS,
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)
const;
1790 void GBEQU(
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* rowcond,
double* colcond,
double* amax,
int* info)
const;
1791 void GBRFS(
const char TRANS,
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)
const;
1792 void GESVX(
const char FACT,
const char TRANS,
const int n,
const int nrhs, std::complex<double>* A,
const int lda, std::complex<double>* AF,
const int ldaf,
int* IPIV,
char EQUED,
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)
const;
1793 void GEHRD(
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)
const;
1794 void TRTRS(
const char UPLO,
const char TRANS,
const char DIAG,
const int n,
const int nrhs,
const std::complex<double>* A,
const int lda, std::complex<double>*
B,
const int ldb,
int* info)
const;
1795 void TRTRI(
const char UPLO,
const char DIAG,
const int n,
const std::complex<double>* A,
const int lda,
int* info)
const;
1798 void STEQR(
const char COMPZ,
const int n,
double*
D,
double*
E, std::complex<double>* Z,
const int ldz,
double* WORK,
int* info)
const;
1799 void HEEV(
const char JOBZ,
const char UPLO,
const int n, std::complex<double>* A,
const int lda,
double* W, std::complex<double>* WORK,
const int lwork,
double* RWORK,
int* info)
const;
1800 void HEGV(
const int itype,
const char JOBZ,
const char UPLO,
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)
const;
1803 void HSEQR(
const char JOB,
const char COMPZ,
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)
const;
1804 void GEES(
const char JOBVS,
const char SORT,
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)
const;
1805 void GEES(
const char JOBVS,
const int n, std::complex<double>* A,
const int lda,
int* sdim,
double* WR,
double* WI, std::complex<double>* VS,
const int ldvs, std::complex<double>* WORK,
const int lwork,
double* RWORK,
int* BWORK,
int* info)
const;
1806 void GEEV(
const char JOBVL,
const char JOBVR,
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)
const;
1807 void GEEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1808 void GGEVX(
const char BALANC,
const char JOBVL,
const char JOBVR,
const char SENSE,
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)
const;
1809 void GGEV(
const char JOBVL,
const char JOBVR,
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, std::complex<double> *WORK,
const int lwork,
double* RWORK,
int* info)
const;
1812 void GESVD(
const char JOBU,
const char JOBVT,
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)
const;
1815 void TREVC(
const char SIDE,
const char HOWMNY,
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)
const;
1816 void TREVC(
const char SIDE,
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)
const;
1817 void TREXC(
const char COMPQ,
const int n, std::complex<double>* T,
const int ldt, std::complex<double>* Q,
const int ldq,
int ifst,
int ilst, std::complex<double>* WORK,
int* info)
const;
1820 void LARTG(
const std::complex<double>
f,
const std::complex<double>
g,
double* c, std::complex<double>* s, std::complex<double>* r )
const;
1821 void LARFG(
const int n, std::complex<double>* alpha, std::complex<double>* x,
const int incx, std::complex<double>* tau )
const;
1824 void GEBAL(
const char JOBZ,
const int n, std::complex<double>* A,
const int lda,
int ilo,
int ihi,
double* scale,
int* info)
const;
1825 void GEBAK(
const char JOBZ,
const char SIDE,
const int n,
const int ilo,
const int ihi,
const double* scale,
const int m, std::complex<double>* V,
const int ldv,
int* info)
const;
1828 std::complex<double> LARND(
const int idist,
int* seed )
const;
1829 void LARNV(
const int idist,
int* seed,
const int n, std::complex<double>* v )
const;
1832 int ILAENV(
const int ispec,
const std::string& NAME,
const std::string& OPTS,
const int N1 = -1,
const int N2 = -1,
const int N3 = -1,
const int N4 = -1 )
const;
1838 #endif // HAVE_TEUCHOS_COMPLEX
1840 #endif // DOXYGEN_SHOULD_SKIP_THIS
1844 #endif // _TEUCHOS_LAPACK_HPP_
Teuchos::ScalarTraits< ScalarType >::magnitudeType MagnitudeType
void POCON(const char UPLO, const OrdinalType n, const ScalarType *A, const OrdinalType lda, const ScalarType anorm, ScalarType *rcond, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Estimates the reciprocal of the condition number (1-norm) of a real symmetric positive definite matri...
void SPEV(const char JOBZ, const char UPLO, const OrdinalType n, ScalarType *AP, ScalarType *W, ScalarType *Z, const OrdinalType ldz, ScalarType *WORK, OrdinalType *info) const
Computes the eigenvalues and, optionally, eigenvectors of a symmetric n by n matrix A in packed stora...
ScalarType LARND(const OrdinalType idist, OrdinalType *seed) const
Returns a random number from a uniform or normal distribution.
void GEEV(const char JOBVL, const char JOBVR, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *WR, ScalarType *WI, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes for an n by n real nonsymmetric matrix A, the eigenvalues and, optionally, the left and/or right eigenvectors.
T magnitudeType
Mandatory typedef for result of magnitude.
void GEBAL(const char JOBZ, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType ilo, OrdinalType ihi, MagnitudeType *scale, OrdinalType *info) const
Balances a general matrix A, through similarity transformations to make the rows and columns as close...
void SYGV(const OrdinalType itype, const char JOBZ, const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, ScalarType *W, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes all the eigenvalues and, optionally, eigenvectors of a symmetric n by n matrix pencil {A...
void TREXC(const char COMPQ, const OrdinalType n, ScalarType *T, const OrdinalType ldt, ScalarType *Q, const OrdinalType ldq, OrdinalType ifst, OrdinalType ilst, ScalarType *WORK, OrdinalType *info) const
void PTTRS(const OrdinalType n, const OrdinalType nrhs, const ScalarType *d, const ScalarType *e, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a tridiagonal system A*X=B using the *D*L' factorization of A computed by PTTRF.
void POSVX(const char FACT, const char UPLO, const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, ScalarType *AF, const OrdinalType ldaf, char EQUED, ScalarType *S, ScalarType *B, const OrdinalType ldb, ScalarType *X, const OrdinalType ldx, ScalarType *rcond, ScalarType *FERR, ScalarType *BERR, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Uses the Cholesky factorization to compute the solution to a real system of linear equations A*X=B...
void STEQR(const char COMPZ, const OrdinalType n, ScalarType *D, ScalarType *E, ScalarType *Z, const OrdinalType ldz, ScalarType *WORK, OrdinalType *info) const
Computes the eigenvalues and, optionally, eigenvectors of a symmetric tridiagonal n by n matrix A usi...
void GBEQU(const OrdinalType m, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, const ScalarType *A, const OrdinalType lda, MagnitudeType *R, MagnitudeType *C, MagnitudeType *rowcond, MagnitudeType *colcond, MagnitudeType *amax, OrdinalType *info) const
Computes row and column scalings intended to equilibrate an m by n banded matrix A and reduce its con...
void GGEV(const char JOBVL, const char JOBVR, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, ScalarType *BETA, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
void TGSEN(const OrdinalType ijob, const OrdinalType wantq, const OrdinalType wantz, const OrdinalType *SELECT, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, MagnitudeType *BETA, ScalarType *Q, const OrdinalType ldq, ScalarType *Z, const OrdinalType ldz, OrdinalType *M, MagnitudeType *PL, MagnitudeType *PR, MagnitudeType *DIF, ScalarType *WORK, const OrdinalType lwork, OrdinalType *IWORK, const OrdinalType liwork, OrdinalType *info) const
void GEQRF(const OrdinalType m, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes a QR factorization of a general m by n matrix A.
static T squareroot(T x)
Returns a number of magnitudeType that is the square root of this scalar type x.
OrdinalType ILAENV(const OrdinalType ispec, const std::string &NAME, const std::string &OPTS, const OrdinalType N1=-1, const OrdinalType N2=-1, const OrdinalType N3=-1, const OrdinalType N4=-1) const
Chooses problem-dependent parameters for the local environment.
void GETRF(const OrdinalType m, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *IPIV, OrdinalType *info) const
Computes an LU factorization of a general m by n matrix A using partial pivoting with row interchange...
void UNGQR(const OrdinalType m, const OrdinalType n, const OrdinalType k, ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Compute explicit QR factor from QR factorization (GEQRF) (complex case).
Teuchos header file which uses auto-configuration information to include necessary C++ headers...
void GETRS(const char TRANS, const OrdinalType n, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, const OrdinalType *IPIV, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a system of linear equations A*X=B or A'*X=B with a general n by n matrix A using the LU facto...
ScalarType LAMCH(const char CMACH) const
Determines machine parameters for floating point characteristics.
LAPACK(void)
Default Constructor.
void GEES(const char JOBVS, const char SORT, OrdinalType(*ptr2func)(ScalarType *, ScalarType *), const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *sdim, ScalarType *WR, ScalarType *WI, ScalarType *VS, const OrdinalType ldvs, ScalarType *WORK, const OrdinalType lwork, OrdinalType *BWORK, OrdinalType *info) const
void GBTRF(const OrdinalType m, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, ScalarType *A, const OrdinalType lda, OrdinalType *IPIV, OrdinalType *info) const
Computes an LU factorization of a general banded m by n matrix A using partial pivoting with row inte...
void TRTRI(const char UPLO, const char DIAG, const OrdinalType n, const ScalarType *A, const OrdinalType lda, OrdinalType *info) const
Computes the inverse of an upper or lower triangular matrix A.
void TREVC(const char SIDE, const char HOWMNY, OrdinalType *select, const OrdinalType n, const ScalarType *T, const OrdinalType ldt, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, const OrdinalType mm, OrdinalType *m, ScalarType *WORK, OrdinalType *info) const
static magnitudeType sfmin()
Returns safe minimum (sfmin), such that 1/sfmin does not overflow.
This structure defines some basic traits for a scalar field type.
void GECON(const char NORM, const OrdinalType n, const ScalarType *A, const OrdinalType lda, const ScalarType anorm, ScalarType *rcond, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Estimates the reciprocal of the condition number of a general real matrix A, in either the 1-norm or ...
void LARTG(const ScalarType f, const ScalarType g, MagnitudeType *c, ScalarType *s, ScalarType *r) const
Gnerates a plane rotation that zeros out the second component of the input vector.
#define TEUCHOSNUMERICS_LIB_DLL_EXPORT
void LARFG(const OrdinalType n, ScalarType *alpha, ScalarType *x, const OrdinalType incx, ScalarType *tau) const
Generates an elementary reflector of order n that zeros out the last n-1 components of the input vect...
void POSV(const char UPLO, const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Computes the solution to a real system of linear equations A*X=B, where A is a symmetric positive def...
void GEEQU(const OrdinalType m, const OrdinalType n, const ScalarType *A, const OrdinalType lda, ScalarType *R, ScalarType *C, ScalarType *rowcond, ScalarType *colcond, ScalarType *amax, OrdinalType *info) const
Computes row and column scalings intended to equilibrate an m by n matrix A and reduce its condition ...
void ORGQR(const OrdinalType m, const OrdinalType n, const OrdinalType k, ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Compute explicit Q factor from QR factorization (GEQRF) (real case).
void GGES(const char JOBVL, const char JOBVR, const char SORT, OrdinalType(*ptr2func)(ScalarType *, ScalarType *, ScalarType *), const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, OrdinalType *sdim, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, MagnitudeType *BETA, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, ScalarType *WORK, const OrdinalType lwork, OrdinalType *BWORK, OrdinalType *info) const
void POTRF(const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *info) const
Computes Cholesky factorization of a real symmetric positive definite matrix A.
void PTTRF(const OrdinalType n, ScalarType *d, ScalarType *e, OrdinalType *info) const
Computes the L*D*L' factorization of a Hermitian/symmetric positive definite tridiagonal matrix A...
void POTRS(const char UPLO, const OrdinalType n, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a system of linear equations A*X=B, where A is a symmetric positive definite matrix factored b...
LAPACK(const LAPACK< OrdinalType, ScalarType > &lapack)
Copy Constructor.
void GESVX(const char FACT, const char TRANS, const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, ScalarType *AF, const OrdinalType ldaf, OrdinalType *IPIV, char EQUED, ScalarType *R, ScalarType *C, ScalarType *B, const OrdinalType ldb, ScalarType *X, const OrdinalType ldx, ScalarType *rcond, ScalarType *FERR, ScalarType *BERR, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Uses the LU factorization to compute the solution to a real system of linear equations A*X=B...
void GTTRS(const char TRANS, const OrdinalType n, const OrdinalType nrhs, const ScalarType *dl, const ScalarType *d, const ScalarType *du, const ScalarType *du2, const OrdinalType *IPIV, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a system of linear equations A*X=B or A'*X=B or A^H*X=B with a tridiagonal matrix A using the ...
void SYEV(const char JOBZ, const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *W, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes all the eigenvalues and, optionally, eigenvectors of a symmetric n by n matrix A...
void GERFS(const char TRANS, const OrdinalType n, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, const ScalarType *AF, const OrdinalType ldaf, const OrdinalType *IPIV, const ScalarType *B, const OrdinalType ldb, ScalarType *X, const OrdinalType ldx, ScalarType *FERR, ScalarType *BERR, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Improves the computed solution to a system of linear equations and provides error bounds and backward...
void UNMQR(const char SIDE, const char TRANS, const OrdinalType m, const OrdinalType n, const OrdinalType k, ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *C, const OrdinalType ldc, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Apply Householder reflectors (complex case).
void GBTRS(const char TRANS, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, const OrdinalType *IPIV, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a system of linear equations A*X=B or A'*X=B with a general banded n by n matrix A using the L...
void LASWP(const OrdinalType N, ScalarType A[], const OrdinalType LDA, const OrdinalType K1, const OrdinalType K2, const OrdinalType IPIV[], const OrdinalType INCX) const
Apply a series of row interchanges to the matrix A.
void GEQP3(const OrdinalType m, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *jpvt, ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, MagnitudeType *RWORK, OrdinalType *info) const
Computes a QR factorization with column pivoting of a matrix A: A*P = Q*R using Level 3 BLAS...
void PORFS(const char UPLO, const OrdinalType n, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, const ScalarType *AF, const OrdinalType ldaf, const ScalarType *B, const OrdinalType ldb, ScalarType *X, const OrdinalType ldx, ScalarType *FERR, ScalarType *BERR, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Improves the computed solution to a system of linear equations when the coefficient matrix is symmetr...
void GESVD(const char JOBU, const char JOBVT, const OrdinalType m, const OrdinalType n, ScalarType *A, const OrdinalType lda, MagnitudeType *S, ScalarType *U, const OrdinalType ldu, ScalarType *V, const OrdinalType ldv, ScalarType *WORK, const OrdinalType lwork, MagnitudeType *RWORK, OrdinalType *info) const
Computes the singular values (and optionally, vectors) of a real matrix A.
The Templated LAPACK Wrapper Class.
void LARNV(const OrdinalType idist, OrdinalType *seed, const OrdinalType n, ScalarType *v) const
Returns a vector of random numbers from a chosen distribution.
void GELSS(const OrdinalType m, const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, MagnitudeType *S, const MagnitudeType rcond, OrdinalType *rank, ScalarType *WORK, const OrdinalType lwork, MagnitudeType *RWORK, OrdinalType *info) const
Use the SVD to solve a possibly rank-deficient linear least-squares problem.
#define TEUCHOS_MAX(x, y)
void LATRS(const char UPLO, const char TRANS, const char DIAG, const char NORMIN, const OrdinalType N, ScalarType *A, const OrdinalType LDA, ScalarType *X, MagnitudeType *SCALE, MagnitudeType *CNORM, OrdinalType *INFO) const
Robustly solve a possibly singular triangular linear system.
void LASCL(const char TYPE, const OrdinalType kl, const OrdinalType ku, const MagnitudeType cfrom, const MagnitudeType cto, const OrdinalType m, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *info) const
Multiplies the m by n matrix A by the real scalar cto/cfrom.
void HEGV(const OrdinalType itype, const char JOBZ, const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, MagnitudeType *W, ScalarType *WORK, const OrdinalType lwork, MagnitudeType *RWORK, OrdinalType *info) const
Computes all the eigenvalues and, optionally, eigenvectors of a generalized Hermitian-definite n by n...
void GTTRF(const OrdinalType n, ScalarType *dl, ScalarType *d, ScalarType *du, ScalarType *du2, OrdinalType *IPIV, OrdinalType *info) const
Computes an LU factorization of a n by n tridiagonal matrix A using partial pivoting with row interch...
void GBRFS(const char TRANS, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, const ScalarType *AF, const OrdinalType ldaf, const OrdinalType *IPIV, const ScalarType *B, const OrdinalType ldb, ScalarType *X, const OrdinalType ldx, ScalarType *FERR, ScalarType *BERR, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Improves the computed solution to a banded system of linear equations and provides error bounds and b...
void GBCON(const char NORM, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, const ScalarType *A, const OrdinalType lda, OrdinalType *IPIV, const ScalarType anorm, ScalarType *rcond, ScalarType *WORK, OrdinalType *IWORK, OrdinalType *info) const
Estimates the reciprocal of the condition number of a general banded real matrix A, in either the 1-norm or the infinity-norm, using the LU factorization computed by GETRF.
void TRTRS(const char UPLO, const char TRANS, const char DIAG, const OrdinalType n, const OrdinalType nrhs, const ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Solves a triangular linear system of the form A*X=B or A**T*X=B, where A is a triangular matrix...
static magnitudeType magnitude(T a)
Returns the magnitudeType of the scalar type a.
void GGEVX(const char BALANC, const char JOBVL, const char JOBVR, const char SENSE, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, MagnitudeType *ALPHAR, MagnitudeType *ALPHAI, ScalarType *BETA, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, OrdinalType *ilo, OrdinalType *ihi, MagnitudeType *LSCALE, MagnitudeType *RSCALE, MagnitudeType *abnrm, MagnitudeType *bbnrm, MagnitudeType *RCONDE, MagnitudeType *RCONDV, ScalarType *WORK, const OrdinalType lwork, OrdinalType *IWORK, OrdinalType *BWORK, OrdinalType *info) const
void HEEV(const char JOBZ, const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, MagnitudeType *W, ScalarType *WORK, const OrdinalType lwork, MagnitudeType *RWORK, OrdinalType *info) const
Computes all the eigenvalues and, optionally, eigenvectors of a Hermitian n by n matrix A...
void GEEVX(const char BALANC, const char JOBVL, const char JOBVR, const char SENSE, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *WR, ScalarType *WI, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, OrdinalType *ilo, OrdinalType *ihi, MagnitudeType *SCALE, MagnitudeType *abnrm, MagnitudeType *RCONDE, MagnitudeType *RCONDV, ScalarType *WORK, const OrdinalType lwork, OrdinalType *IWORK, OrdinalType *info) const
void ORMHR(const char SIDE, const char TRANS, const OrdinalType m, const OrdinalType n, const OrdinalType ilo, const OrdinalType ihi, const ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *C, const OrdinalType ldc, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Overwrites the general real m by n matrix C with the product of C and Q, which is a product of ihi-il...
void GGLSE(const OrdinalType m, const OrdinalType n, const OrdinalType p, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, ScalarType *C, ScalarType *D, ScalarType *X, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Solves the linear equality-constrained least squares (LSE) problem where A is an m by n matrix...
void GELS(const char TRANS, const OrdinalType m, const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, ScalarType *B, const OrdinalType ldb, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Solves an over/underdetermined real m by n linear system A using QR or LQ factorization of A...
virtual ~LAPACK(void)
Destructor.
ScalarTraits< ScalarType >::magnitudeType LANGB(const char NORM, const OrdinalType n, const OrdinalType kl, const OrdinalType ku, const ScalarType *A, const OrdinalType lda, MagnitudeType *WORK) const
Returns the value of the one norm, or the Frobenius norm, or the infinity norm, or the element of lar...
Defines basic traits for the scalar field type.
static T zero()
Returns representation of zero for this scalar type.
void ORMQR(const char SIDE, const char TRANS, const OrdinalType m, const OrdinalType n, const OrdinalType k, ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *C, const OrdinalType ldc, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
void HSEQR(const char JOB, const char COMPZ, const OrdinalType n, const OrdinalType ilo, const OrdinalType ihi, ScalarType *H, const OrdinalType ldh, ScalarType *WR, ScalarType *WI, ScalarType *Z, const OrdinalType ldz, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes the eigenvalues of a real upper Hessenberg matrix H and, optionally, the matrices T and Z fr...
void TGEVC(const char SIDE, const char HOWMNY, const OrdinalType *SELECT, const OrdinalType n, ScalarType *S, const OrdinalType lds, ScalarType *P, const OrdinalType ldp, ScalarType *VL, const OrdinalType ldvl, ScalarType *VR, const OrdinalType ldvr, const OrdinalType mm, OrdinalType *M, ScalarType *WORK, OrdinalType *info) const
void GEHRD(const OrdinalType n, const OrdinalType ilo, const OrdinalType ihi, ScalarType *A, const OrdinalType lda, ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Reduces a real general matrix A to upper Hessenberg form by orthogonal similarity transformations...
void GEBAK(const char JOBZ, const char SIDE, const OrdinalType n, const OrdinalType ilo, const OrdinalType ihi, const MagnitudeType *scale, const OrdinalType m, ScalarType *V, const OrdinalType ldv, OrdinalType *info) const
Forms the left or right eigenvectors of a general matrix that has been balanced by GEBAL by backward ...
void GESV(const OrdinalType n, const OrdinalType nrhs, ScalarType *A, const OrdinalType lda, OrdinalType *IPIV, ScalarType *B, const OrdinalType ldb, OrdinalType *info) const
Computes the solution to a real system of linear equations A*X=B, where A is factored through GETRF a...
void TRSEN(const char JOB, const char COMPQ, const OrdinalType *SELECT, const OrdinalType n, ScalarType *T, const OrdinalType ldt, ScalarType *Q, const OrdinalType ldq, MagnitudeType *WR, MagnitudeType *WI, OrdinalType *M, ScalarType *S, MagnitudeType *SEP, ScalarType *WORK, const OrdinalType lwork, OrdinalType *IWORK, const OrdinalType liwork, OrdinalType *info) const
#define TEUCHOS_MIN(x, y)
void POTRI(const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, OrdinalType *info) const
Computes the inverse of a real symmetric positive definite matrix A using the Cholesky factorization ...
void POEQU(const OrdinalType n, const ScalarType *A, const OrdinalType lda, MagnitudeType *S, MagnitudeType *scond, MagnitudeType *amax, OrdinalType *info) const
Computes row and column scalings intended to equilibrate a symmetric positive definite matrix A and r...
static T one()
Returns representation of one for this scalar type.
void ORGHR(const OrdinalType n, const OrdinalType ilo, const OrdinalType ihi, ScalarType *A, const OrdinalType lda, const ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Generates a real orthogonal matrix Q which is the product of ihi-ilo elementary reflectors of order n...
ScalarType LAPY2(const ScalarType x, const ScalarType y) const
Computes x^2 + y^2 safely, to avoid overflow.
void SYTRD(const char UPLO, const OrdinalType n, ScalarType *A, const OrdinalType lda, ScalarType *D, ScalarType *E, ScalarType *TAU, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Reduces a real symmetric matrix A to tridiagonal form by orthogonal similarity transformations.
void GETRI(const OrdinalType n, ScalarType *A, const OrdinalType lda, const OrdinalType *IPIV, ScalarType *WORK, const OrdinalType lwork, OrdinalType *info) const
Computes the inverse of a matrix A using the LU factorization computed by GETRF.