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 @@
#ifndef MY_DIRECTIONAL_CONVEX_FUNCTION_HH
#define MY_DIRECTIONAL_CONVEX_FUNCTION_HH
#include <dune/fufem/arithmetic.hh>
#include <dune/fufem/interval.hh>
/*
......@@ -16,9 +17,7 @@
template <class MatrixType, class VectorType>
double computeDirectionalA(MatrixType const &A, VectorType const &v) {
VectorType tmp(v.size());
A.mv(v, tmp);
return tmp * v;
return Arithmetic::Axy(A, v, v);
}
template <class MatrixType, class VectorType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment