1 SUBROUTINE tqli(d
,e
,n
,np
,z
)
4 INTEGER, INTENT(IN
) :: n
,np
5 ! REAL(KIND=LONG), INTENT(OUT) :: d(np),e(np),z(np,np)
6 REAL(KIND
=LONG
) :: d(np
),e(np
),z(np
,np
)
9 REAL(KIND
=LONG
) :: b
,c
,dd
,f
,g
,p
,r
,s
,pythag
17 dd
=abs(d(m
))+abs(d(m
+1))
18 if (abs(e(m
))+dd
.eq
.dd
) goto 2
22 if(iter
.eq
.30)pause 'too many iterations in tqli'
24 g
=(d(l
+1)-d(l
))/(2.*e(l
))
26 g
=d(m
)-d(l
)+e(l
)/(g
+sign(r
,g
))
47 ! Omit lines from here ...
53 ! ... to here when finding only eigenvalues.