]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify one function.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Dec 2012 04:47:37 +0000 (04:47 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Dec 2012 04:47:37 +0000 (04:47 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_deprecated@27883 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 735bf1f2a3eb91ed18ddb93545236fc5fa737462..e4a7099bffa1cb2a204b282c031a21ca3ec2fab2 100644 (file)
@@ -1215,16 +1215,8 @@ template <typename number>
 bool
 FullMatrix<number>::operator == (const FullMatrix<number> &M) const
 {
-  // the matrices may either be both
-  // empty, or of same size and with
-  // same values, if they shall be
-  // equal
-  bool result = (this->data()==0) && (M.data()==0);
-  result = result || ((m()==M.m()) && (n()==M.n()) &&
-                      std::equal (this->data(), this->data()+m()*n(),
-                                  M.data()));
-
-  return result;
+  // simply pass down to the base class
+  return Table<2,number>::operator==(M);
 }
 
 

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.