Mercurial > octave-nkf
view .hgsubstate @ 19446:78e424d31596
Overhaul max/min functions (fixes bug #43712).
Return logical class for logical inputs. Allow max (array, scalar) calls to
proceed without creating a broadcast warning. Rewrite docstring. Add many
more BIST tests to get 100% line coverage.
* max.cc (do_minmax_bin_op<charNDArray>): Remove code protected by
if (x.is_scalar_type()) which is never triggered by input.
Check for scalar using numel() == 1 and call max function with array, scalar
invocation.
* max.cc (do_minmax_body): At end of function, cast retval to bool_array if
both inputs were of bool type (bug #43712).
* max.cc (Fmin, Fmax): Rewrite docstrings. Add BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 20 Dec 2014 20:07:50 -0800 |
parents | 203431f40cb2 |
children | 85d9cb769e8b |