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	Thu Apr 22 14:03:47 2010 -0700
+++ b/scripts/ChangeLog	Thu Apr 22 14:38:58 2010 -0700
@@ -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	Thu Apr 22 14:03:47 2010 -0700
+++ b/scripts/optimization/glpk.m	Thu Apr 22 14:38:58 2010 -0700
@@ -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