From df5d2728e80ba11a7d9dfbec9d00f34cd6e15c8b Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 14 Jul 2013 15:48:54 +0200
Subject: [PATCH] [Cleanup] Use bmAxy

---
 dune/tectonic/mydirectionalconvexfunction.hh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dune/tectonic/mydirectionalconvexfunction.hh b/dune/tectonic/mydirectionalconvexfunction.hh
index ec870c3a..cd05e083 100644
--- a/dune/tectonic/mydirectionalconvexfunction.hh
+++ b/dune/tectonic/mydirectionalconvexfunction.hh
@@ -23,9 +23,7 @@ double computeDirectionalA(MatrixType const &A, VectorType const &v) {
 template <class MatrixType, class VectorType>
 double computeDirectionalb(MatrixType const &A, VectorType const &b,
                            VectorType const &u, VectorType const &v) {
-  VectorType tmp = b;
-  Arithmetic::addProduct(tmp, -1.0, A, u);
-  return tmp * v;
+  return Arithmetic::bmAxy(A, b, u, v);
 }
 
 template <class NonlinearityType> class MyDirectionalConvexFunction {
-- 
GitLab