6 subroutine eveqnzhgs(n,m,ms,ld1,a,b,w,ld2,z)
8 use,
intrinsic :: iso_c_binding
11 integer,
intent(in) :: n,m,ms,ld1
12 complex(8),
target :: a(ld1,*),b(ld1,*)
13 real(8),
intent(out) :: w(m)
14 integer,
intent(in) :: ld2
15 complex(8),
intent(out) :: z(ld2,m)
17 integer ns,i,j,k,l,nthd
22 complex(8),
allocatable :: as(:,:)
23 complex(8),
pointer,
contiguous :: bs(:,:),zs(:,:)
25 ns=merge(n/abs(ms),ms,ms < 0)
34 call c_f_pointer(c_loc(a),bs,shape=[ns,ns])
35 call c_f_pointer(c_loc(b),zs,shape=[ns,m])
47 as(i,j)=merge(a(k,l),conjg(a(l,k)),k <= l)
56 bs(i,j)=merge(b(k,l),conjg(b(l,k)),k <= l)
68 z(idx(1:ns),i)=zs(1:ns,i)
pure subroutine sortidx(n, x, idx)
subroutine holdthd(nloop, nthd)
subroutine eveqnzhgs(n, m, ms, ld1, a, b, w, ld2, z)
subroutine eveqnzhg(n, m, ld1, a, b, w, ld2, z)