From 3707e20b756e5e384d5fa2ae71a9ea7876edc7b7 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Thu, 16 Dec 2010 12:30:15 +0000
Subject: [PATCH] add missing specialization of method axpy for FieldVectors

[[Imported from SVN: r3649]]
---
 dune/solvers/common/staticmatrixtools.hh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dune/solvers/common/staticmatrixtools.hh b/dune/solvers/common/staticmatrixtools.hh
index af26041b..041baf14 100644
--- a/dune/solvers/common/staticmatrixtools.hh
+++ b/dune/solvers/common/staticmatrixtools.hh
@@ -88,6 +88,11 @@ class StaticMatrix
                 x.diagonal()[i] += a * y[i][i];
         }
 
+        template <typename FieldType, int n, typename Scalar>
+        static void axpy(Dune::FieldVector<FieldType,n>& x, const Scalar a, const Dune::FieldVector<FieldType,n>& y)
+        {
+            x.axpy(a, y);
+        }
 
 
         // add transformed matrix X = A^T*Y*B ******************************************************
-- 
GitLab