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

Comments

parent c5eb6d53
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ template <int dim> class SampleFunctional {
double operator()(SmallVector const &v) const {
SmallVector y;
A.mv(v, y); // y = Av
y /= 2; // y = 1/2 Av
y -= b; // y = 1/2 Av - b
A.mv(v, y); // Av
y /= 2; // 1/2 Av
y -= b; // 1/2 Av - b
return y * v + phi(v); // <1/2 Av - b,v> + H(|v|)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment