Mercurial > hg > octave-nkf
diff scripts/general/validateattributes.m @ 20072:e9f89866074c
maint: Cleanup some .m files to follow Octave coding conventions.
* accumarray.m, validateattributes.m, iscolormap.m, __imread__.m,
__imwrite__.m, imwrite_filename.m, strread.m, getappdata.m,
appearance/annotation.m, shrinkfaces.m, rundemos.m, runtests.m,
datenum.m, datestr.m: Break long lines before && and ||.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 26 Feb 2015 13:13:40 -0500 (2015-02-26) |
parents | 9fc020886ae9 |
children |
line wrap: on
line diff
--- a/scripts/general/validateattributes.m +++ b/scripts/general/validateattributes.m @@ -265,14 +265,14 @@ case "nonnegative", problem = any (A(:) < 0); case "nonzero", problem = any (A(:) == 0); case "positive", problem = any (A(:) <= 0); - case "decreasing", problem = (any (isnan (A(:))) || - any (diff (A(:)) >= 0)); - case "increasing", problem = (any (isnan (A(:))) || - any (diff (A(:)) <= 0)); - case "nondecreasing", problem = (any (isnan (A(:))) || - any (diff (A(:)) < 0)); - case "nonincreasing", problem = (any (isnan (A(:))) || - any (diff (A(:)) > 0)); + case "decreasing", problem = (any (isnan (A(:))) + || any (diff (A(:)) >= 0)); + case "increasing", problem = (any (isnan (A(:))) + || any (diff (A(:)) <= 0)); + case "nondecreasing", problem = (any (isnan (A(:))) + || any (diff (A(:)) < 0)); + case "nonincreasing", problem = (any (isnan (A(:))) + || any (diff (A(:)) > 0)); case "size", A_size = size (A); w_size = attr{idx++};