Go to the documentation of this file.
37 #ifndef TEMPLATE_LAPACK_SYEV_HEADER
38 #define TEMPLATE_LAPACK_SYEV_HEADER
126 integer a_dim1, a_offset, i__1, i__2;
147 #define a_ref(a_1,a_2) a[(a_2)*a_dim1 + a_1]
151 a_offset = 1 + a_dim1 * 1;
161 lquery = *lwork == -1;
174 i__1 = 1, i__2 = *n * 3 - 1;
175 if (*lwork <
maxMACRO(i__1,i__2) && ! lquery) {
184 i__1 = 1, i__2 = (nb + 2) * *n;
186 work[1] = (Treal) lwkopt;
225 smlnum = safmin / eps;
226 bignum = 1. / smlnum;
234 if (anrm > 0. && anrm < rmin) {
237 }
else if (anrm > rmax) {
250 indwrk = indtau + *n;
251 llwork = *lwork - indwrk + 1;
253 work[indwrk], &llwork, &iinfo);
281 work[1] = (Treal) lwkopt;
Treal template_blas_sqrt(Treal x)
int ftnlen
Definition: template_blas_common.h:42
int template_lapack_sterf(const integer *n, Treal *d__, Treal *e, integer *info)
Definition: template_lapack_sterf.h:43
Treal template_lapack_lansy(const char *norm, const char *uplo, const integer *n, const Treal *a, const integer *lda, Treal *work)
Definition: template_lapack_lansy.h:42
integer template_lapack_ilaenv(const integer *ispec, const char *name__, const char *opts, const integer *n1, const integer *n2, const integer *n3, const integer *n4, ftnlen name_len, ftnlen opts_len)
Definition: template_lapack_common.cc:281
Treal template_lapack_lamch(const char *cmach, Treal dummyReal)
Definition: template_lapack_lamch.h:202
int template_blas_scal(const integer *n, const Treal *da, Treal *dx, const integer *incx)
Definition: template_blas_scal.h:43
bool logical
Definition: template_blas_common.h:41
int template_lapack_syev(const char *jobz, const char *uplo, const integer *n, Treal *a, const integer *lda, Treal *w, Treal *work, const integer *lwork, integer *info)
Definition: template_lapack_syev.h:42
int template_lapack_steqr(const char *compz, const integer *n, Treal *d__, Treal *e, Treal *z__, const integer *ldz, Treal *work, integer *info)
Definition: template_lapack_steqr.h:42
int template_lapack_lascl(const char *type__, const integer *kl, const integer *ku, const Treal *cfrom, const Treal *cto, const integer *m, const integer *n, Treal *a, const integer *lda, integer *info)
Definition: template_lapack_lascl.h:42
int template_blas_erbla(const char *srname, integer *info)
Definition: template_blas_common.cc:146
int template_lapack_sytrd(const char *uplo, const integer *n, Treal *a, const integer *lda, Treal *d__, Treal *e, Treal *tau, Treal *work, const integer *lwork, integer *info)
Definition: template_lapack_sytrd.h:43
logical template_blas_lsame(const char *ca, const char *cb)
Definition: template_blas_common.cc:46
int integer
Definition: template_blas_common.h:40
int template_lapack_orgtr(const char *uplo, const integer *n, Treal *a, const integer *lda, const Treal *tau, Treal *work, const integer *lwork, integer *info)
Definition: template_lapack_orgtr.h:42
#define maxMACRO(a, b)
Definition: template_blas_common.h:45