Class mroot_broyden (o2scl)¶
-
template<class
func_t
= mm_funct, classvec_t
= boost::numeric::ublas::vector<double>, classmat_t
= boost::numeric::ublas::matrix<double>, classjfunc_t
= jac_funct>
classo2scl
::
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
-
mroot_broyden
()¶
-
~mroot_broyden
()¶
-
void
allocate
(size_t n)¶ Allocate memory.
-
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.
-
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>