|
From: | Nicholas Jankowski |
Subject: | [Octave-bug-tracker] [bug #48690] basic statistics functions should return NaN on empty input |
Date: | Wed, 26 Jul 2017 14:16:13 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #29, bug #48690 (project octave): ok. passes 118 out of 118 tests :) fully(?) matlab compatible mode.m that works with mode(X,DIM) form with empty inputs attached. basically made what was the sz = [0,0] codepath only execute for nargin==1. for nargin ==2 let it change the specified dimension to 1 instead of the 'first nonsingleton dimension'. the rest follows. I'll attach an updated patch when I get a chance. should be able to make similar changes to the other statistics functions. (file #41342) _______________________________________________________ Additional Item Attachment: File name: mode.m Size:12 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?48690> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |