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

[Cleanup] Use bmAxy

parent d76f1c26
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,7 @@ double computeDirectionalA(MatrixType const &A, VectorType const &v) { ...@@ -23,9 +23,7 @@ double computeDirectionalA(MatrixType const &A, VectorType const &v) {
template <class MatrixType, class VectorType> template <class MatrixType, class VectorType>
double computeDirectionalb(MatrixType const &A, VectorType const &b, double computeDirectionalb(MatrixType const &A, VectorType const &b,
VectorType const &u, VectorType const &v) { VectorType const &u, VectorType const &v) {
VectorType tmp = b; return Arithmetic::bmAxy(A, b, u, v);
Arithmetic::addProduct(tmp, -1.0, A, u);
return tmp * v;
} }
template <class NonlinearityType> class MyDirectionalConvexFunction { template <class NonlinearityType> class MyDirectionalConvexFunction {
......
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