Mercurial > octave
diff scripts/optimization/sqp.m @ 28892:3cac3ceb9629
maint: Use coding style with parentheses after function name to distinguish from a variable.
* audiorecorder.m, interp3.m, iscolormap.m, spinmap.m, expm.m, copyfile.m,
delete.m, edit.m, inputParser.m, movefile.m, narginchk.m, nargoutchk.m,
publish.m, tar.m, tempdir.m, ode23.m, ode23s.m, ode45.m, odeplot.m, sqp.m,
matlabroot.m, savepath.m, expand_rel_paths.m, datetick.m, lighting.m,
material.m, rticks.m, shading.m, thetaticks.m, view.m, xticklabels.m, xticks.m,
yticklabels.m, yticks.m, zticklabels.m, zticks.m, colorbar.m, errorbar.m,
hist.m, isocaps.m, light.m, line.m, patch.m, shrinkfaces.m, stairs.m,
surface.m, allchild.m, ancestor.m, cla.m, clf.m, findobj.m, gca.m, hggroup.m,
isgraphics.m, ishandle.m, print.m, struct2hdl.m, arch_rnd.m, speed.m, clock.m:
Use parentheses '()' after function invocation to distinguish between a variable
and a function.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 10 Oct 2020 17:55:56 -0700 |
parents | 28de41192f3c |
children | 90fea9cc9caa |
line wrap: on
line diff
--- a/scripts/optimization/sqp.m Sat Oct 10 16:32:20 2020 -0700 +++ b/scripts/optimization/sqp.m Sat Oct 10 17:55:56 2020 -0700 @@ -297,7 +297,7 @@ if (isa (x0, "single")) globals.lb = tmp_lb = -realmax ("single"); else - globals.lb = tmp_lb = -realmax; + globals.lb = tmp_lb = -realmax (); endif else error ("sqp: invalid lower bound"); @@ -312,7 +312,7 @@ if (isa (x0, "single")) globals.ub = tmp_ub = realmax ("single"); else - globals.ub = tmp_ub = realmax; + globals.ub = tmp_ub = realmax (); endif else error ("sqp: invalid upper bound");