Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
7032:4d4197ffb09d | 7033:f0142f2afdc6 |
---|---|
1200 } | 1200 } |
1201 | 1201 |
1202 if (!mattype.is_hermitian ()) | 1202 if (!mattype.is_hermitian ()) |
1203 ret = finverse(mattype, info, rcond, force, calc_cond); | 1203 ret = finverse(mattype, info, rcond, force, calc_cond); |
1204 | 1204 |
1205 if (rcond == 0.) | 1205 if ((mattype.is_hermitian () || calc_cond) && rcond == 0.) |
1206 ret = ComplexMatrix (rows (), columns (), Complex (octave_Inf, 0.)); | 1206 ret = ComplexMatrix (rows (), columns (), Complex (octave_Inf, 0.)); |
1207 } | 1207 } |
1208 | 1208 |
1209 return ret; | 1209 return ret; |
1210 } | 1210 } |