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

Comments

parent b02b292d
No related branches found
No related tags found
No related merge requests found
...@@ -43,11 +43,11 @@ class SampleFunctional { ...@@ -43,11 +43,11 @@ class SampleFunctional {
*/ */
SmallVector tmp; SmallVector tmp;
A_.mv(descDir, tmp); A_.mv(descDir, tmp); // Av
double const rest_A = tmp * descDir; double const rest_A = tmp * descDir; // <Av,v>
A_.mv(x, tmp); A_.mv(x, tmp); // Au
double const rest_b = (b_ - tmp) * descDir; double const rest_b = (b_ - tmp) * descDir; // <b-Au,v>
typedef MyNonlinearity<dimension, Function> MyNonlinearityType; typedef MyNonlinearity<dimension, Function> MyNonlinearityType;
MyNonlinearityType phi; MyNonlinearityType phi;
...@@ -55,7 +55,8 @@ class SampleFunctional { ...@@ -55,7 +55,8 @@ class SampleFunctional {
MyDirectionalConvexFunctionType; MyDirectionalConvexFunctionType;
MyDirectionalConvexFunctionType rest(rest_A, rest_b, phi, x, descDir); MyDirectionalConvexFunctionType rest(rest_A, rest_b, phi, x, descDir);
Bisection bisection; // FIXME: default values // FIXME: default values are used
Bisection bisection;
int count; int count;
// FIXME: does x_old = 1 make any sense?! // FIXME: does x_old = 1 make any sense?!
double const m = bisection.minimize(rest, 0.0, 1.0, count); double const m = bisection.minimize(rest, 0.0, 1.0, count);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment