MADNESS
0.10.1
|
The interface to be provided by targets for non-linear equation solver. More...
#include <solvers.h>
Public Member Functions | |
virtual | ~SolverTargetInterface () |
virtual Tensor< double > | jacobian (const Tensor< double > &x) |
Some solvers require the jacobian or are faster if an analytic form is available. More... | |
virtual bool | provides_jacobian () const |
Override this to return true if the Jacobian is implemented. More... | |
virtual Tensor< double > | residual (const Tensor< double > &x)=0 |
Should return the resdiual (vector F(x)) More... | |
virtual void | residual_and_jacobian (const Tensor< double > &x, Tensor< double > &residual, Tensor< double > &jacobian) |
Implement this if advantageous to compute residual and jacobian simultaneously. More... | |
The interface to be provided by targets for non-linear equation solver.
|
inlinevirtual |
|
inlinevirtual |
Some solvers require the jacobian or are faster if an analytic form is available.
J(i,j) = partial F[i] over partial x[j] where F(x) is the vector valued residual
Referenced by residual_and_jacobian().
|
inlinevirtual |
Override this to return true
if the Jacobian is implemented.
|
pure virtual |
Should return the resdiual (vector F(x))
Referenced by residual_and_jacobian().
|
inlinevirtual |
Implement this if advantageous to compute residual and jacobian simultaneously.
References jacobian(), and residual().