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

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

[Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not


From: Rik
Subject: [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values
Date: Mon, 10 Apr 2017 12:46:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #7, bug #49523 (project octave):

I don't see any real difference in creating matrices with all zeros or all
NaNs.  See below


octave:1> tic; x = zeros (1e3,1e3); toc
Elapsed time is 0.00626612 seconds.
octave:2> tic; x = zeros (1e3,1e3); toc
Elapsed time is 0.00639701 seconds.
octave:3> tic; x = NaN (1e3,1e3); toc
Elapsed time is 0.00226998 seconds.
octave:4> tic; x = NaN (1e3,1e3); toc
Elapsed time is 0.00632405 seconds.
octave:5> tic; x = NaN (1e3,1e3); toc
Elapsed time is 0.00363517 seconds.


I don't think performance is an issue here.  And I have always tried to code
Octave to avoid Garbage In / Garbage Out phenomena.  I believe many Octave
users are professional scientists first, and coders second.  I don't think
they will necessarily realize that they need to code defensively and check
their eigenvalues before going on to use the eigenvectors.  For that reason, I
would prefer to return NaNs for the eigenvectors to immediately inform the
coder that something is amiss.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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