diff liboctave/CMatrix.cc @ 10813:2c2d4a2f1047

fix workspace bug workaround for xGELSD (since 7486:6a6d2abe51ff)
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 22 Jul 2010 09:54:03 +0200
parents 7c542263a92a
children 3622db30ff05
line wrap: on
line diff
--- a/liboctave/CMatrix.cc
+++ b/liboctave/CMatrix.cc
@@ -2653,7 +2653,7 @@
       // through 3.1.1 when n >= mnthr.  The obtuse formula below
       // should provide sufficient workspace for ZGELSD to operate
       // efficiently.
-      if (n >= mnthr)
+      if (n > m && n >= mnthr)
         {
           octave_idx_type addend = m;