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

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

[Octave-bug-tracker] [bug #59488] eigs error in dsaupd for zero matrix


From: Rik
Subject: [Octave-bug-tracker] [bug #59488] eigs error in dsaupd for zero matrix
Date: Fri, 20 Nov 2020 12:17:15 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

Follow-up Comment #12, bug #59488 (project octave):

Thanks for testing.  4.4.1 and 5.2.0 are the same thing, just with a nicer
decoding of the message.  I checked the code in libinterp and liboctave and it
doesn't appear that Octave changes the vector in any way.  This means that the
error message from 4.4.1 ("error -9 in dsaupd") is correct, but attributing it
to an empty starting vector is incorrect in this case.

There is a dependence on the version of the external ARPACK library.  In my
case, I am using 3.5.0+real-2 and it just works.

It seems like ARPACK may be getting more brittle in the types of input
matrices it can accept.  That is annoying, but means we at Octave probably
have to program defensively around it.  I would suggest the nnz() test in
__eigs__.cc.

I would probably put this change on the development branch rather than the
about-to-be-released stable branch.  It is a corner case, and there is an easy
workaround.  If Octave throws this error then the programmer already knows
that all eigenvalues are zero and there is no need for any computation.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59488>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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