diff liboctave/dMatrix.cc @ 7033:f0142f2afdc6

[project @ 2007-10-16 17:46:44 by jwe]
author jwe
date Tue, 16 Oct 2007 17:46:44 +0000
parents a1dbe9d80eee
children c3b479e753dd
line wrap: on
line diff
--- a/liboctave/dMatrix.cc
+++ b/liboctave/dMatrix.cc
@@ -871,7 +871,7 @@
       if (!mattype.is_hermitian ())
 	ret = finverse(mattype, info, rcond, force, calc_cond);
 
-      if (rcond == 0.)
+      if ((mattype.is_hermitian () || calc_cond) && rcond == 0.)
 	ret = Matrix (rows (), columns (), octave_Inf);
     }