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

[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: anonymous
Subject: [Octave-bug-tracker] [bug #51437] mean(zeros(1, 0)) does not return NaN
Date: Tue, 11 Jul 2017 03:43:36 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?51437>

                 Summary: mean(zeros(1,0)) does not return NaN
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 11 Jul 2017 07:43:34 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Reimund Renner
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

In Matlab mean of an empty input returns NaN, however,
Octave returns [](1x0) for "mean(zeros(1,0))".

Obviously it is the case if empty input size at dimension dim is not zero,
e.g. also "mean(zeros(0,1), 2)" returns [](0x1).




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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