Class mroot_broyden (o2scl)¶
-
template<class func_t = mm_funct, class vec_t = boost::numeric::ublas::vector<double>, class mat_t = boost::numeric::ublas::matrix<double>, class jfunc_t = jac_funct>
class mroot_broyden : public o2scl::mroot<mm_funct, boost::numeric::ublas::vector<double>, jac_funct>¶ Multidimensional root-finding using Broyden’s method (GSL)
Experimental.
Based on [Broyden65].
Public Types
-
typedef boost::numeric::ublas::vector<double> ubvector¶
-
typedef boost::numeric::ublas::matrix<double> ubmatrix¶
Public Functions
-
inline mroot_broyden()¶
-
inline virtual ~mroot_broyden()¶
-
inline void allocate(size_t n)¶
Allocate memory.
-
inline void set(func_t &func, size_t nvar, vec_t &x, vec_t &f, vec_t &dx)¶
Set the function, initial guess, and provide vectors to store function values and stepsize.
The initial values of
f
anddx
are ignored.
-
inline int iterate()¶
Perform an iteration.
Public Members
-
jacobian_gsl<func_t, vec_t, mat_t> def_jac¶
Default Jacobian object.
Protected Functions
Protected Attributes
-
permutation perm¶
Permutation object for the LU decomposition.
-
double phi¶
Desc.
-
size_t user_nvar¶
Number of variables.
-
size_t mem_size¶
Size of memory allocated.
-
typedef boost::numeric::ublas::vector<double> ubvector¶