A direct calculation of the jacobian using a deriv_base object. More...
#include <jacobian.h>
By default, the stepsize, deriv_gsl::h is set to
in the jacobian_exact constructor.
Note that it is most often wasteful to use this Jacobian in a root-finding routine and using more approximate Jacobians is more efficient.
Default template arguments
func_t - mm_functvec_t - boost::numeric::ublas::vector<double>mat_t - boost::numeric::ublas::matrix<double> Definition at line 339 of file jacobian.h.
Classes | |
| 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() | |
| virtual int | jac_err (size_t nx, vec_t &x, size_t ny, vec_t &y, mat_t &jac, mat_t &err) |
| Compute the Jacobian and its uncertainty from the numerical differentiation. | |
Public Member Functions inherited from o2scl::jacobian< mm_funct, boost::numeric::ublas::vector< double >, boost::numeric::ublas::matrix< double > > | |
| virtual int | set_function (mm_funct &f) |
| Set the function to compute the Jacobian of. | |
| virtual int | operator() (size_t nx, boost::numeric::ublas::vector< double > &x, size_t ny, boost::numeric::ublas::vector< double > &y, boost::numeric::ublas::matrix< double > &j)=0 |
Evaluate the Jacobian j at point y(x) | |
Public Attributes | |
| deriv_gsl | def_deriv |
| The default derivative object. | |
Public Attributes inherited from o2scl::jacobian< mm_funct, boost::numeric::ublas::vector< double >, boost::numeric::ublas::matrix< double > > | |
| bool | err_nonconv |
| If true, call the error handler if the routine does not converge. | |
Protected Member Functions | |
| double | dfn (double x, ej_parms &ejp) |
| Function for the derivative object. | |
Protected Attributes | |
| deriv_base * | dptr |
| Pointer to the derivative object. | |
Protected Attributes inherited from o2scl::jacobian< mm_funct, boost::numeric::ublas::vector< double >, boost::numeric::ublas::matrix< double > > | |
| mm_funct | func |
| A pointer to the user-specified function. | |
Documentation generated with Doxygen. Provided under the
GNU Free Documentation License (see License Information).