]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fixed inversion of FullMatrix objects.
authorprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Jan 2007 13:07:34 +0000 (13:07 +0000)
committerprill <prill@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Jan 2007 13:07:34 +0000 (13:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@14397 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index d6bf96dfed21ea726667d9e15eeedb8b92317d3a..a46831d4d4d9c58512e7b57593c81850aa7d3e7a 100644 (file)
@@ -2000,7 +2000,7 @@ FullMatrix<number>::invert (const FullMatrix<number2> &M)
   Assert (this->n_rows() == M.n_rows(),
          ExcDimensionMismatch(this->n_rows(), M.n_rows()));
 
-  if ((&M == this) && (this->n_cols() <= 4))
+  if (&M == this)
     {
                                       // avoid overwriting source
                                       // by destination matrix:

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.