Mercurial > hg > octave-nkf
diff liboctave/CMatrix.cc @ 11661:ef2b2df1ed9a release-3-0-x
avoid another xGELSD workspace query bug
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Feb 2008 02:51:32 -0500 |
parents | ef95e842ba81 |
children | 8ac2994e4596 |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -2567,6 +2567,13 @@ if (std::real (work(0)) < lworkaround) work(0) = lworkaround; } + else if (m >= n) + { + octave_idx_type lworkaround = 2*m + m*nrhs; + + if (std::real (work(0)) < lworkaround) + work(0) = lworkaround; + } if (f77_exception_encountered) (*current_liboctave_error_handler)