So-Bogus
A c++ sparse block matrix library aimed at Second Order cone problems
|
Dense, naive Newton implementation. More...
#include <NonSmoothNewton.hpp>
Public Types | |
typedef NSFunction::Traits | Traits |
typedef Traits::Scalar | Scalar |
typedef Traits::Vector | Vector |
typedef Traits::Matrix | Matrix |
Public Member Functions | |
NonSmoothNewton (const NSFunction &func, Scalar tol) | |
Scalar | solve (Vector &x) const |
Tries to find x such that m_func( x ) = 0. More... | |
void | setMaxIters (unsigned maxIters) |
Sets the maximum number of iterations. | |
void | setTol (Scalar tol) |
Sets the solver tolerance. | |
Dense, naive Newton implementation.
NSFunction | The type of the function for which to find the zeros. Should define compute() and computeJacobian() methods. Does not have to be smooth or convex, but that helps. |
Scalar bogus::NonSmoothNewton< NSFunction >::solve | ( | Vector & | x | ) | const |
Tries to find x
such that m_func( x ) = 0.
Or, more precisely, such that
x | Used both as an initial guess and to return the approximate solution |