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

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

[Octave-bug-tracker] [bug #63410] mean input validation misses invalid i


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #63410] mean input validation misses invalid inputs for dim
Date: Wed, 23 Nov 2022 14:28:43 -0500 (EST)

Update of bug #63410 (project octave):

           Fixed Release:                    None => 8.1.0 (current stable) 
         Planned Release:                    None => 8.1.0 (current stable) 

    _______________________________________________________

Follow-up Comment #2:

changed input validation to:


if (! (isvector (dim) && dim > 0 && rem (dim, 1) == 0))
  error ("mean: DIM must be a positive integer scalar or vector");
endif


added input validation BISTs for neg, nan, and inf inputs. passes all tests.
added note to bugfix section of 8.1 news.

pushed to stable as  https://hg.savannah.gnu.org/hgweb/octave/rev/24ca5cb70a4a


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63410>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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