diff liboctave/dSparse.cc @ 6185:da5a11b3d13e

[project @ 2006-11-22 18:57:26 by dbateman]
author dbateman
date Wed, 22 Nov 2006 18:57:27 +0000
parents d73ffe42f2c8
children 3c92b8d892dd
line wrap: on
line diff
--- a/liboctave/dSparse.cc
+++ b/liboctave/dSparse.cc
@@ -1049,7 +1049,10 @@
   else if (typ == MatrixType::Upper || typ == MatrixType::Permuted_Upper)
     ret = tinverse (mattype, info, rcond, true, calc_cond).transpose();
   else if (typ == MatrixType::Lower || typ == MatrixType::Permuted_Lower)
-    ret = transpose().tinverse (mattype, info, rcond, true, calc_cond);
+    {
+      MatrixType newtype = mattype.transpose();
+      ret = transpose().tinverse (newtype, info, rcond, true, calc_cond);
+    }
   else if (typ != MatrixType::Rectangular)
     {
       if (mattype.is_hermitian())