Class jacobian_exact (o2scl)¶
-
template<class func_t = mm_funct, class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>>
class jacobian_exact : public o2scl::jacobian<mm_funct, boost::numeric::ublas::vector<double>, boost::numeric::ublas::matrix<double>>¶ A direct calculation of the jacobian using a deriv_base object.
By default, the stepsize, deriv_gsl::h is set to \( 10^{-4} \) 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>
Public Functions
-
inline jacobian_exact()¶
-
inline int set_deriv(deriv_base<> &de)¶
Set the derivative object.
Protected Attributes
-
deriv_base *dptr¶
Pointer to the derivative object.
-
struct ej_parms¶
Parameter structure for passing information.
This class is primarily useful for specifying derivatives for using the jacobian::set_deriv() function.