From: guido Date: Fri, 10 Jan 2003 10:13:51 +0000 (+0000) Subject: replaced operator= by copy_from X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d389582de3b56d337901c5eed6a3423df47736c;p=dealii-svn.git replaced operator= by copy_from git-svn-id: https://svn.dealii.org/trunk@6904 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index ae2aee0285..759cdf78b3 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -411,8 +411,9 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
    -
  1. New: FullMatrix has an - assignment operator using iterators of the sparse matrix classes. +

  2. New: FullMatrix has a + function copy_from, copying from sparse matrices. + It uses iterators of the sparse matrix classes.
    (GK 2003/01/08)

    diff --git a/deal.II/lac/include/lac/full_matrix.h b/deal.II/lac/include/lac/full_matrix.h index 0ecc071499..b1be4abb3f 100644 --- a/deal.II/lac/include/lac/full_matrix.h +++ b/deal.II/lac/include/lac/full_matrix.h @@ -138,7 +138,7 @@ class FullMatrix : public Table<2,number> * matrices are possible sources. */ template - FullMatrix& operator = (const MATRIX&); + FullMatrix& copy_from (const MATRIX&); /** * Comparison operator. Be @@ -769,16 +769,15 @@ void FullMatrix::fill (const number2* src) template template -FullMatrix& -FullMatrix::operator = (const MATRIX& M) +void +FullMatrix::copy_from (const MATRIX& M) { reinit (M.m(), M.n()); typename MATRIX::const_iterator entry; const typename MATRIX::const_iterator end = M.end(); for (entry = M.begin();entry != end;++entry) el(entry->row(), entry->column()) = entry->value(); - return *this; -} + } /*---------------------------- fullmatrix.h ---------------------------*/