|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #63410] mean input validation misses invalid inputs for dim |
Date: | Thu, 24 Nov 2022 02:06:24 -0500 (EST) |
Follow-up Comment #4, bug #63410 (project octave): It might be easier for future programmers to understand this condition if we made the implicit `all` explicit: if (! (isvector (dim) && all (dim > 0) && all (rem (dim, 1) == 0))) error ("mean: DIM must be a positive integer scalar or vector"); endif _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?63410> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |