From: bangerth Date: Mon, 31 Dec 2012 04:47:37 +0000 (+0000) Subject: Simplify one function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bbecce971dced4fcfb53e4dc06726fb355c4b12;p=dealii-svn.git Simplify one function. git-svn-id: https://svn.dealii.org/branches/branch_deprecated@27883 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/full_matrix.templates.h b/deal.II/include/deal.II/lac/full_matrix.templates.h index 735bf1f2a3..e4a7099bff 100644 --- a/deal.II/include/deal.II/lac/full_matrix.templates.h +++ b/deal.II/include/deal.II/lac/full_matrix.templates.h @@ -1215,16 +1215,8 @@ template bool FullMatrix::operator == (const FullMatrix &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); }