From f2fa15d92da8cf6d07fd8228175235d69d1b8175 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?= <robertk@dune-project.org>
Date: Tue, 5 Feb 2008 17:26:45 +0000
Subject: [PATCH] fix for bug #346 in mv method.

[[Imported from SVN: r5072]]
---
 common/fmatrix.hh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/common/fmatrix.hh b/common/fmatrix.hh
index 302310a75..6d4a1a139 100644
--- a/common/fmatrix.hh
+++ b/common/fmatrix.hh
@@ -243,9 +243,10 @@ namespace Dune {
       if (x.N()!=M()) DUNE_THROW(FMatrixError,"index out of range");
       if (y.N()!=N()) DUNE_THROW(FMatrixError,"index out of range");
 #endif
-      for (size_type i=0; i<n; i++)
-        for (size_type j=0; j<m; j++)
-          y[i] = (*this)[i][j] * x[j];
+      for (size_type i=0; i<n; ++i)
+      {
+        y[i] = (*this)[i] * x;
+      }
     }
 
     //! y += A x
-- 
GitLab