From 4f86660c763e76279656b12805a725c4d296ea0f Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 3 Sep 2001 16:09:56 +0000 Subject: [PATCH] FullMatrix::operator *= git-svn-id: https://svn.dealii.org/trunk@4938 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/full_matrix.templates.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.39.5