Skip to content
Snippets Groups Projects
Commit d76f1c26 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Use Axy()

parent 85a3c132
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#ifndef MY_DIRECTIONAL_CONVEX_FUNCTION_HH #ifndef MY_DIRECTIONAL_CONVEX_FUNCTION_HH
#define MY_DIRECTIONAL_CONVEX_FUNCTION_HH #define MY_DIRECTIONAL_CONVEX_FUNCTION_HH
#include <dune/fufem/arithmetic.hh>
#include <dune/fufem/interval.hh> #include <dune/fufem/interval.hh>
/* /*
...@@ -16,9 +17,7 @@ ...@@ -16,9 +17,7 @@
template <class MatrixType, class VectorType> template <class MatrixType, class VectorType>
double computeDirectionalA(MatrixType const &A, VectorType const &v) { double computeDirectionalA(MatrixType const &A, VectorType const &v) {
VectorType tmp(v.size()); return Arithmetic::Axy(A, v, v);
A.mv(v, tmp);
return tmp * v;
} }
template <class MatrixType, class VectorType> template <class MatrixType, class VectorType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment