[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility |
Date: |
Fri, 14 Jul 2017 17:02:22 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #5, bug #51437 (project octave):
Why, as a mathematical proposition, shouldn't mean() return NaN for all empty
matrices?
I can't find any easy pattern to the results that you have from Matlab. It
seems to me that this may be an instance where Octave does not want to follow
Matlab exactly since there seems to be quirks of implementation here, rather
than reasonable mathematical results.
If you could, try these further tests in Matlab:
mean (zeros (0,0))
mean (zeros (1,0))
mean (zeros (2,0))
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51437>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN, anonymous, 2017/07/11
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN, Reimund Renner, 2017/07/11
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Rik, 2017/07/12
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Reimund Renner, 2017/07/13
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Reimund Renner, 2017/07/13
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility,
Rik <=
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Reimund Renner, 2017/07/17
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Luis Mendo, 2017/07/24
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Rik, 2017/07/24
- [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN for Matlab compatibility, Reimund Renner, 2017/07/25