35 #ifndef TEMPLATE_LAPACK_SYGV_HEADER
36 #define TEMPLATE_LAPACK_SYGV_HEADER
155 integer a_dim1, a_offset, b_dim1, b_offset, i__1, i__2;
167 a_offset = 1 + a_dim1 * 1;
170 b_offset = 1 + b_dim1 * 1;
180 lquery = *lwork == -1;
183 if (*itype < 1 || *itype > 3) {
197 i__1 = 1, i__2 = *n * 3 - 1;
198 if (*lwork <
maxMACRO(i__1,i__2) && ! lquery) {
206 lwkopt = (nb + 2) * *n;
207 work[1] = (Treal) lwkopt;
254 if (*itype == 1 || *itype == 2) {
260 *(
unsigned char *)trans =
'N';
262 *(
unsigned char *)trans =
'T';
266 b_offset], ldb, &a[a_offset], lda);
268 }
else if (*itype == 3) {
274 *(
unsigned char *)trans =
'T';
276 *(
unsigned char *)trans =
'N';
280 b_offset], ldb, &a[a_offset], lda);
284 work[1] = (Treal) lwkopt;