newton.hh
Go to the documentation of this file.
51 Newton(std::function<Vector<typename F::d_type>(Vector<typename F::d_type>)> A, Real dx, uint dimY, uint dimX,
53 VecOperator<typename F::d_type>(dimY, dimX), A_(A), JacA_(nullptr), definedJacA_(false), dx_(dx), dimY_(dimY), dimX_(dimX),
67 Newton(std::function<Vector<typename F::d_type >(Vector<typename F::d_type>)> A, std::function<F(Vector<typename F::d_type>)> JacA, uint dimY,
std::unique_ptr< concepts::Operator< typename F::d_type > > linearSolver_
Internal linear solver.
Definition: newton.hh:121
virtual const uint dimX() const
Returns the size of the image space of the operator (number of rows of the corresponding matrix)
Definition: compositions.hh:93
#define DEBUGL(doit, msg)
virtual void show_messages()
std::function< F(Vector< typename F::d_type >)> * JacA_
Function that evaluates the Jacobian of matrix A applied to vector X.
Definition: newton.hh:95
std::function< Vector< typename F::d_type >Vector< typename F::d_type >)> & A_
Function that evaluates the matrix A applied to vector X.
Definition: newton.hh:92
Newton(std::function< Vector< typename F::d_type >(Vector< typename F::d_type >)> A, Real dx, uint dimY, uint dimX, Real tol=1e-8, Real iterMax=1000)
Constructor.
Definition: newton.hh:51
virtual void hide_messages()
Abstract class for an operator acting on vectors only, not arbitrary functions.
Definition: compositions.hh:115
virtual void apply_(const Vector< typename F::d_type > &fncY, Vector< typename F::d_type > &fncX)
virtual const uint dimY() const
Returns the size of the source space of the operator (number of columns of the corresponding matrix)
Definition: compositions.hh:98
Newton(std::function< Vector< typename F::d_type >(Vector< typename F::d_type >)> A, std::function< F(Vector< typename F::d_type >)> JacA, uint dimY, uint dimX, Real tol=1e-8, Real iterMax=50)
Constructor.
Definition: newton.hh:67