From: wolf Date: Mon, 3 Sep 2001 16:09:56 +0000 (+0000) Subject: FullMatrix::operator *= X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f86660c763e76279656b12805a725c4d296ea0f;p=dealii-svn.git FullMatrix::operator *= git-svn-id: https://svn.dealii.org/trunk@4938 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index b2b9b6e6b6..c9d8869047 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -67,6 +67,21 @@ FullMatrix::all_zero () const }; + +template +FullMatrix & +FullMatrix::operator *= (const double factor) +{ + number *p = data(); + const number *e = data() + n()*m(); + while (p != e) + *p++ *= factor; + + return *this; +}; + + + template template void