octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53719] eigs delivers wrong result in case of


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #53719] eigs delivers wrong result in case of complex valued general eigenvalue problem
Date: Wed, 25 Apr 2018 06:55:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Update of bug #53719 (project octave):

                  Status:                   Fixed => In Progress            

    _______________________________________________________

Follow-up Comment #8:

I run the original test (asking for 4 eigenvalues) with a plain fortran file,
and arpack does not converge, which is better than silently returning the
wrong eigenvalues as octave.
Arpack calls several times znaupd which returns a vector x and ask for an
operation y = OP(x) (either y = B*x or y = A\x). I displayed the first element
of x and y before and after each of the operations. They coincide, in plain
fortran and octave, till the end of the first major iteration (about 30 calls
to znaupd). Then, eigenvalues are computed. They coincide, even if they are in
a different order. This is already strange, but maybe I missed a sorting
operation when Arpack directly displays results. Then the first residual has
to be computed. In order to do that, a B*x operation is needed. Well, at this
point, x is different in plain fortran and octave. At this point, resid, which
is an input/output argument for znaupd, is the same as input, but different as
output. It seems that znaupd behaves differently when called by the fortran
file or when called by octave. I have only one set of blas/lapack/arpack
libraries on my system.

I include a zip file, with the modified eigs-base.cc which produces output,
with zndrv4_53719.f (gfortran zndrv4_53719.f -lblas -llapack -larpack), and
with the output files, with an entry LOOK HERE to find the divergence point. I
still have no idea.

(file #44025)
    _______________________________________________________

Additional Item Attachment:

File name: 53719.zip                      Size:20 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53719>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]