[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/
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Marco Caliari, 2017/04/07
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Marco Caliari, 2017/04/07
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Marco Caliari, 2017/04/10
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Rik, 2017/04/10
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, anonymous, 2017/04/10
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values,
Rik <=
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, anonymous, 2017/04/10
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Marco Caliari, 2017/04/11
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Rik, 2017/04/11
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Marco Caliari, 2017/04/12
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Rik, 2017/04/12
- [Octave-bug-tracker] [bug #49523] eigs (R2013b and later) uses NaNs, not zeros, for unconverged Ritz values, Rik, 2017/04/16