MADNESS  version 0.9
Public Member Functions | List of all members
madness::SolverTargetInterface Struct Referenceabstract

The interface to be provided by targets for non-linear equation solver. More...

#include <solvers.h>

Public Member Functions

virtual Tensor< double > residual (const Tensor< double > &x)=0
 Should return the resdiual (vector F(x)) More...
 
virtual bool provides_jacobian () const
 Override this to return true if the Jacobian is implemented. More...
 
virtual Tensor< double > jacobian (const Tensor< double > &x)
 Some solvers require the jacobian or are faster if an analytic form is available. 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...
 
virtual ~SolverTargetInterface ()
 

Detailed Description

The interface to be provided by targets for non-linear equation solver.

Constructor & Destructor Documentation

virtual madness::SolverTargetInterface::~SolverTargetInterface ( )
inlinevirtual

Member Function Documentation

virtual Tensor<double> madness::SolverTargetInterface::jacobian ( const Tensor< double > &  x)
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().

virtual bool madness::SolverTargetInterface::provides_jacobian ( ) const
inlinevirtual

Override this to return true if the Jacobian is implemented.

virtual Tensor<double> madness::SolverTargetInterface::residual ( const Tensor< double > &  x)
pure virtual

Should return the resdiual (vector F(x))

Referenced by residual_and_jacobian().

virtual void madness::SolverTargetInterface::residual_and_jacobian ( const Tensor< double > &  x,
Tensor< double > &  residual,
Tensor< double > &  jacobian 
)
inlinevirtual

Implement this if advantageous to compute residual and jacobian simultaneously.

References jacobian(), and residual().


The documentation for this struct was generated from the following file: