diff liboctave/CMatrix.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/CMatrix.cc	Mon Oct 15 16:31:55 2007 +0000
+++ b/liboctave/CMatrix.cc	Tue Oct 16 17:46:44 2007 +0000
@@ -1202,7 +1202,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 = ComplexMatrix (rows (), columns (), Complex (octave_Inf, 0.));
     }