comparison scripts/general/interpn.m @ 20735:418ae0cb752f

Replace ++,-- with in-place operators for performance. * inputParser.m, int2str.m, interp2.m, interp3.m, interpn.m, __isequal__.m, voronoi.m, imshow.m, jet.m, __imread__.m, __imwrite__.m, imwrite_filename.m, dlmwrite.m, importdata.m, strread.m, krylov.m, fact.m, genvarname.m, fminbnd.m, fminsearch.m, fminunc.m, fsolve.m, fzero.m, lsqnonneg.m, pqpnonneg.m, qp.m, sqp.m, annotation.m, legend.m, orient.m, __bar__.m, __contour__.m, __patch__.m, __plt__.m, __scatter__.m, rectangle.m, surfc.m, figure.m, hdl2struct.m, pan.m, __gnuplot_draw_axes__.m, __gnuplot_ginput__.m, rotate3d.m, struct2hdl.m, zoom.m, freqz.m, periodogram.m, gmres.m, pcg.m, pcr.m, __sprand__.m, sprandsym.m, treelayout.m, treeplot.m, hadamard.m, hilb.m, iqr.m, assert.m, test.m: Replace ++,-- with in-place operators for performance.
author Rik <rik@octave.org>
date Sun, 22 Nov 2015 20:25:17 -0800
parents 7503499a252b
children 516bb87ea72e
comparison
equal deleted inserted replaced
20734:e44d904ac525 20735:418ae0cb752f
89 extrapval = varargin{end}; 89 extrapval = varargin{end};
90 method = varargin{end-1}; 90 method = varargin{end-1};
91 nargs -= 2; 91 nargs -= 2;
92 elseif (ischar (varargin{end})) 92 elseif (ischar (varargin{end}))
93 method = varargin{end}; 93 method = varargin{end};
94 nargs--; 94 nargs -= 1;
95 endif 95 endif
96 96
97 if (method(1) == "*") 97 if (method(1) == "*")
98 warning ("interpn: ignoring unsupported '*' flag to METHOD"); 98 warning ("interpn: ignoring unsupported '*' flag to METHOD");
99 method(1) = []; 99 method(1) = [];