[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54484] Difference in divide by zero warning
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54484] Difference in divide by zero warning |
Date: |
Fri, 10 Aug 2018 12:40:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #4, bug #54484 (project octave):
I don't think we need to have the exact same return matrix. However, it might
be useful to return all NaNs so that subsequent calculations are impossible.
Under Octave, someone might be do a division of a singular matrix in the midst
of a chain of computations and an all zeros matrix might allow processing to
continue.
Simple example:
x = ones (2);
y = zeros (2);
z = x / y;
z = z + 5
z =
5 5
5 5
If you are running a script in batch mode, or otherwise fail to see the
warning message, then you might think the end result is correct.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54484>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/