4 SUBROUTINE jacobi(A,N,NP,D,V,NROT)
7 integer,
intent(in) :: N
8 integer,
intent(in) :: NP
9 integer,
intent(out) :: NROT
10 real,
intent(inout) :: A(np,np)
11 real,
intent(out) :: D(np)
12 real,
intent(out) :: V(np,np)
16 real :: SM,TRESH,G,H,T,THETA,C,S,TAU
49 IF((i.GT.4).AND.(abs(d(ip))+g.EQ.abs(d(ip))) &
50 .AND.(abs(d(iq))+g.EQ.abs(d(iq))))
THEN
52 ELSE IF(abs(a(ip,iq)).GT.tresh)
THEN
54 IF(abs(h)+g.EQ.abs(h))
THEN
58 t=1./(abs(theta)+sqrt(1.+theta**2))
104 stop
'Jacobi: 50 iterations should never happen'
subroutine jacobi(A, N, NP, D, V, NROT)