Danilo,
I ran your data through the Lapack routine GBSV as an independent check, using the driver code below. The solution vector contains only 6 non-zero elements, and even these six have zero real parts.
Code:
program Test_lib
use lapack95
implicit none
integer, parameter :: KL = 18, KU = 18, NEQ = 1864
double complex, save, dimension(2*KL+KU+1,NEQ) :: akg
double complex, dimension(NEQ,1) :: fge
integer i, j, nlca, nuca
open(47, file = 'akg.k', status = 'old')
do i=1,KL+KU+1
read(47,*) akg(i,1:NEQ)
end do
close(47)
open(48, file = 'fge.k', status = 'old')
read(48,*) (fge(j,1), j=1,NEQ)
close(48)
CALL gbsv (akg, fge)
do i=1, NEQ
if(fge(i,1) /= (0.0,0.0))print 10, i,fge(i,1)
end do
10 format(1x,i4,2x,'(',ES12.4,',',ES12.4,' )')
end program Test_lib
The output:
Code:
1 ( 0.0000E+00, 7.0958E-03 )
2 ( 0.0000E+00, 1.2164E-02 )
3 ( 0.0000E+00, 9.1232E-03 )
4 ( 0.0000E+00, 6.0821E-03 )
5 ( 0.0000E+00, 3.0411E-03 )
6 ( 0.0000E+00, 5.0684E-04 )