<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>
* matrices are possible sources.
*/
template <class MATRIX>
- FullMatrix<number>& operator = (const MATRIX&);
+ FullMatrix<number>& copy_from (const MATRIX&);
/**
* Comparison operator. Be
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