diff scripts/statistics/movmax.m @ 26671:12b6065efa25

Improve performance of certain movXXX functions by ~4X (bug #55389). * movmax.m: Call function with "Endpoints", -Inf. * movmin.m: Call function with "Endpoints", Inf. * movprod.m: Call function with "Endpoints", 1. * movsum.m: Call function with "Endpoints", 0.
author Rik <rik@octave.org>
date Sun, 03 Feb 2019 21:44:38 -0800
parents 00f796120a6d
children 51c2e46e9a36
line wrap: on
line diff
--- a/scripts/statistics/movmax.m	Sun Feb 03 16:35:34 2019 +0100
+++ b/scripts/statistics/movmax.m	Sun Feb 03 21:44:38 2019 -0800
@@ -127,7 +127,8 @@
     print_usage ();
   endif
 
-  y = movfun (@max, x, wlen, __parse_movargs__ ("movmax", varargin{:}){:});
+  y = movfun (@max, x, wlen, "Endpoints", -Inf,
+              __parse_movargs__ ("movmax", varargin{:}){:});
 
 endfunction