Mercurial > hg > octave-nkf
changeset 10541:e9d1a974a517
Eliminate repmat (Inf, x , y) and simply use Inf (x,y)
author | Rik <code@nomad.inbox5.com> |
---|---|
date | Thu, 22 Apr 2010 14:38:58 -0700 |
parents | 952d4df5b686 |
children | 83de7b060e91 |
files | scripts/ChangeLog scripts/optimization/glpk.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-04-22 Rik <octave@nomad.inbox5.com> + + * optimization/glpk.m: Eliminate repmat (Inf, x , y) and just use Inf (x,y) + 2010-04-22 Rik <octave@nomad.inbox5.com> * general/rat.m, sparse/gplot.m, strings/base2dec.m, geometry/triplot.m
--- a/scripts/optimization/glpk.m +++ b/scripts/optimization/glpk.m @@ -475,13 +475,13 @@ if (nargin > 4) if (isempty (ub)) - ub = repmat (Inf, nx, 1); + ub = Inf (nx, 1); elseif (! isreal (ub) || all (size (ub) > 1) || length (ub) != nx) error ("UB must be a real valued %d by 1 column vector", nx); return; endif else - ub = repmat (Inf, nx, 1); + ub = Inf (nx, 1); endif ## 6) Sense of each constraint