changeset 18239:c0f036b5e292

Finv: define xrcond correctly for float matrices (bug #41065)
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 02 Jan 2014 10:12:36 -0500
parents 8f256148d82b
children 3d22b24863b9
files libinterp/corefcn/inv.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/inv.cc	Tue Jan 07 16:07:54 2014 -0500
+++ b/libinterp/corefcn/inv.cc	Thu Jan 02 10:12:36 2014 -0500
@@ -213,7 +213,7 @@
 
       retval(0) = result;
 
-      volatile double xrcond = rcond;
+      volatile double xrcond = isfloat ? frcond : rcond;
       xrcond += 1.0;
       if (nargout < 2 && (info == -1 || xrcond == 1.0))
         warning ("inverse: matrix singular to machine precision, rcond = %g",