From: prill Date: Wed, 31 Jan 2007 13:07:34 +0000 (+0000) Subject: Fixed inversion of FullMatrix objects. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42107a1de3f25894dee8fb86d7b14c6d00be2fa3;p=dealii-svn.git Fixed inversion of FullMatrix objects. git-svn-id: https://svn.dealii.org/trunk@14397 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index d6bf96dfed..a46831d4d4 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -2000,7 +2000,7 @@ FullMatrix::invert (const FullMatrix &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: