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

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

[Octave-bug-tracker] [bug #48690] basic statistics functions should retu


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #48690] basic statistics functions should return NaN on empty input
Date: Sun, 7 Aug 2016 15:46:52 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #9, bug #48690 (project octave):

ok, output for mode should follow:



>> [m f c] = mode(single([]))
Warning: MODE of a 0-by-0 matrix is NaN; result was an empty matrix in
previous releases. 
> In mode (line 72) 

m =
   NaN
f =
     0
c = 
    [0x1 single]

>> class(m)
ans =
single

>> class(f)
ans =
double


also verified that the others all only have one output  and do preserve
single/double status as well. will post patches shortly.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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