We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3284be8 commit a9ce4b2Copy full SHA for a9ce4b2
1 file changed
src/linalg.f90
@@ -36,17 +36,15 @@ subroutine deigh_generalized(Am, Bm, lam, c)
36
call assert_shape(c, [n, n], "eigh", "c")
37
lwork = 1 + 6*n + 2*n**2
38
liwork = 3 + 5*n
39
- allocate(Bmt(n,n), work(lwork), iwork(liwork))
40
- allocate(Amt(n,n))
+ allocate(work(lwork), iwork(liwork))
41
allocate(ifail(n))
42
- Amt = Am; Bmt = Bm ! Bmt temporaries overwritten by dsygvd
43
!call dsygvd(1,'V','L',n,c,n,Bmt,n,lam,work,lwork,iwork,liwork,info)
44
il = 1
45
iu = 7
46
M = iu-il+1
47
allocate(z(n,M))
48
abstol = 1e-4_dp
49
- call dsygvx(1,'V','I','L',n,Amt,n,Bmt,n, &
+ call dsygvx(1,'V','I','L',n,Am,n,Bm,n, &
50
0._dp, 0._dp, 1, 7, abstol, M, lam, c, n, work, &
51
lwork, iwork, ifail, info)
52
!SUBROUTINE DSYGVD( ITYPE, JOBZ, UPLO, N, A, LDA, B, LDB, W, WORK, &
0 commit comments