35 #ifndef TEMPLATE_LAPACK_SYGS2_HEADER 36 #define TEMPLATE_LAPACK_SYGS2_HEADER 119 integer a_dim1, a_offset, b_dim1, b_offset, i__1, i__2;
126 #define a_ref(a_1,a_2) a[(a_2)*a_dim1 + a_1] 127 #define b_ref(a_1,a_2) b[(a_2)*b_dim1 + a_1] 131 a_offset = 1 + a_dim1 * 1;
134 b_offset = 1 + b_dim1 * 1;
140 if (*itype < 1 || *itype > 3) {
163 for (k = 1; k <= i__1; ++k) {
183 lda, &
b_ref(k, k + 1), ldb,
184 &
a_ref(k + 1, k + 1), lda);
190 k + 1), ldb, &
a_ref(k, k + 1), lda);
199 for (k = 1; k <= i__1; ++k) {
219 &c__1, &
b_ref(k + 1, k),
220 &c__1, &
a_ref(k + 1, k + 1),
228 + 1, k + 1), ldb, &
a_ref(k + 1, k), &c__1);
239 for (k = 1; k <= i__1; ++k) {
247 ldb, &
a_ref(1, k), &c__1);
253 &c__1, &a[a_offset], lda);
260 a_ref(k, k) = akk * (d__1 * d__1);
268 for (k = 1; k <= i__1; ++k) {
276 ldb, &
a_ref(k, 1), lda);
282 ldb, &a[a_offset], lda);
289 a_ref(k, k) = akk * (d__1 * d__1);
int template_blas_scal(const integer *n, const Treal *da, Treal *dx, const integer *incx)
Definition: template_blas_scal.h:41
int integer
Definition: template_blas_common.h:38
int template_blas_syr2(const char *uplo, const integer *n, const Treal *alpha, const Treal *x, const integer *incx, const Treal *y, const integer *incy, Treal *a, const integer *lda)
Definition: template_blas_syr2.h:40
int template_blas_trmv(const char *uplo, const char *trans, const char *diag, const integer *n, const Treal *a, const integer *lda, Treal *x, const integer *incx)
Definition: template_blas_trmv.h:40
#define maxMACRO(a, b)
Definition: template_blas_common.h:43
int template_blas_erbla(const char *srname, integer *info)
Definition: template_blas_common.cc:144
int template_blas_trsv(const char *uplo, const char *trans, const char *diag, const integer *n, const Treal *a, const integer *lda, Treal *x, const integer *incx)
Definition: template_blas_trsv.h:40
bool logical
Definition: template_blas_common.h:39
int template_blas_axpy(const integer *n, const Treal *da, const Treal *dx, const integer *incx, Treal *dy, const integer *incy)
Definition: template_blas_axpy.h:41
int template_lapack_sygs2(const integer *itype, const char *uplo, const integer *n, Treal *a, const integer *lda, Treal *b, const integer *ldb, integer *info)
Definition: template_lapack_sygs2.h:41
logical template_blas_lsame(const char *ca, const char *cb)
Definition: template_blas_common.cc:44