All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
o2scl::jacobian_exact< func_t, vec_t, mat_t > Class Template Reference

A direct calculation of the jacobian using a deriv_base object. More...

Detailed Description

template<class func_t = mm_funct11, class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>>
class o2scl::jacobian_exact< func_t, vec_t, mat_t >

Note that it is most often wasteful to use this Jacobian in a root-finding routine and using more approximate Jacobians is more efficient. This class is mostly useful for demonstration and testing purposes.

By default, the stepsize, deriv_gsl::h is set to $ 10^{-4} $ in the jacobian_exact constructor.

Default template arguments

Definition at line 239 of file jacobian.h.

#include <jacobian.h>

Inheritance diagram for o2scl::jacobian_exact< func_t, vec_t, mat_t >:
o2scl::jacobian< func_t, vec_t, mat_t >

Data Structures

struct  ej_parms
 Parameter structure for passing information. More...
 

Public Member Functions

int set_deriv (deriv_base<> &de)
 Set the derivative object.
 
virtual int operator() (size_t nx, vec_t &x, size_t ny, vec_t &y, mat_t &jac)
 The operator()
 
- Public Member Functions inherited from o2scl::jacobian< func_t, vec_t, mat_t >
virtual int set_function (func_t &f)
 Set the function to compute the Jacobian of.
 

Data Fields

deriv_gsl def_deriv
 The default derivative object.
 

Protected Member Functions

double dfn (double x, ej_parms &ejp)
 Function for the derivative object.
 

Protected Attributes

deriv_basedptr
 Pointer to the derivative object.
 
- Protected Attributes inherited from o2scl::jacobian< func_t, vec_t, mat_t >
func_t func
 A pointer to the user-specified function.
 

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

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).
Hosted at Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads..