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

Comments

parent c98fab68
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,8 @@ typename Functional::SmallVector minimise( ...@@ -104,6 +104,8 @@ typename Functional::SmallVector minimise(
if (descDir == typename Functional::SmallVector(0.0)) if (descDir == typename Functional::SmallVector(0.0))
return typename Functional::SmallVector(0.0); return typename Functional::SmallVector(0.0);
// {{{ Construct a restriction of J to the line x + t * descDir
/* We have /* We have
1/2 <A(u+xv),u+xv>-<b,u+xv> = 1/2 <Av,v> x^2 - <b-Au,v> x + <1/2 Au-b,u> 1/2 <A(u+xv),u+xv>-<b,u+xv> = 1/2 <Av,v> x^2 - <b-Au,v> x + <1/2 Au-b,u>
...@@ -124,6 +126,7 @@ typename Functional::SmallVector minimise( ...@@ -124,6 +126,7 @@ typename Functional::SmallVector minimise(
typedef DirectionalConvexFunction<MyNonlinearityType> typedef DirectionalConvexFunction<MyNonlinearityType>
MyDirectionalConvexFunctionType; MyDirectionalConvexFunctionType;
MyDirectionalConvexFunctionType JRest(JRestA, JRestb, phi, x, descDir); MyDirectionalConvexFunctionType JRest(JRestA, JRestb, phi, x, descDir);
// }}}
// FIXME: default values are used // FIXME: default values are used
Bisection bisection; Bisection bisection;
......
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