]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
replaced operator= by copy_from
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 10:13:51 +0000 (10:13 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 10:13:51 +0000 (10:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@6904 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/2002/c-3-4.html
deal.II/lac/include/lac/full_matrix.h

index ae2aee0285cbc1f140352ede0604b84fb4368bd9..759cdf78b3d4d0f2243092226b29d4f9f8e2a10c 100644 (file)
@@ -411,8 +411,9 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 
 <ol>
 
-  <li> <p> New: <code class="class">FullMatrix</code> has an
-  assignment operator using iterators of the sparse matrix classes.
+  <li> <p> New: <code class="class">FullMatrix</code> has a
+  function <code class="member">copy_from</code>, copying from sparse matrices.
+  It uses iterators of the sparse matrix classes.
   <br>
   (GK 2003/01/08)
   </p>
index 0ecc0714990c8bbbd92210d1fb0e01f05856fd8c..b1be4abb3fa7048fc45239f2d0e6b37a03a87384 100644 (file)
@@ -138,7 +138,7 @@ class FullMatrix : public Table<2,number>
                                      * matrices are possible sources.
                                      */
     template <class MATRIX>
-    FullMatrix<number>& operator = (const MATRIX&);
+    FullMatrix<number>& copy_from (const MATRIX&);
     
                                     /**
                                      * Comparison operator. Be
@@ -769,16 +769,15 @@ void FullMatrix<number>::fill (const number2* src)
 
 template <typename number>
 template <class MATRIX>
-FullMatrix<number>&
-FullMatrix<number>::operator = (const MATRIX& M)
+void
+FullMatrix<number>::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     ---------------------------*/
 

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.