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

Fix up after shared pointers

parent e49ae18e
No related branches found
No related tags found
No related merge requests found
...@@ -29,10 +29,10 @@ template <int dim> class SampleFunctional { ...@@ -29,10 +29,10 @@ template <int dim> class SampleFunctional {
double operator()(SmallVector const &v) const { double operator()(SmallVector const &v) const {
SmallVector y; SmallVector y;
A.mv(v, y); // Av A.mv(v, y); // Av
y /= 2; // 1/2 Av y /= 2; // 1/2 Av
y -= b; // 1/2 Av - b y -= b; // 1/2 Av - b
return y * v + *phi(v); // <1/2 Av - b,v> + H(|v|) return y * v + (*phi)(v); // <1/2 Av - b,v> + H(|v|)
} }
bool descentDirection(SmallVector const x, SmallVector &ret) const { bool descentDirection(SmallVector const x, SmallVector &ret) const {
......
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