mroot_hybrid_state_t Class Template Reference

State class for gsl_mroot_hybrids.

#include <gsl_mroot_hybrids.h>


Detailed Description

template<class vec_t = ovector_base, class alloc_vec_t = ovector, class alloc_t = ovector_alloc, class mat_t = omatrix_base, class alloc_mat_t = omatrix, class mat_alloc_t = omatrix_alloc>
class mroot_hybrid_state_t< vec_t, alloc_vec_t, alloc_t, mat_t, alloc_mat_t, mat_alloc_t >

Definition at line 64 of file gsl_mroot_hybrids.h.


Public Member Functions

int allocate (size_t n)
 Allocate memory for a solver with n variables.
int free ()
 Free allocated memory.

Data Fields

alloc_t va
 Vector allocator.
mat_alloc_t ma
 Matrix allocator.
size_t iter
 Number of iterations.
size_t ncfail
 Compute the number of failures.
size_t ncsuc
 Compute the number of successes.
size_t nslow1
 The number of times the actual reduction is less than 0.001.
size_t nslow2
 The number of times the actual reduction is less than 0.1.
double fnorm
 The norm of the current function value.
double delta
 The limit of the Nuclidean norm.
alloc_mat_t J
 Jacobian.
gsl_matrix * q
 Q matrix from QR decomposition.
gsl_matrix * r
 R matrix from QR decomposition.
gsl_vector * tau
 The tau vector from QR decomposition.
gsl_vector * diag
 The diagonal elements.
gsl_vector * qtf
 The value of $ Q^T f $.
gsl_vector * newton
 The Newton direction.
gsl_vector * gradient
 The gradient direction.
gsl_vector * df
 The change in the function value.
gsl_vector * qtdf
 The value of $ Q^T \cdot \mathrm{df} $.
gsl_vector * rdx
 The value of $ R \cdot \mathrm{dx} $.
gsl_vector * w
 The value of $ w=(Q^T df - R dx)/|dx| $.
gsl_vector * v
 The value of $ v=D^2 dx/|dx| $.
size_t dim2
 Number of variables.

Member Function Documentation

int allocate ( size_t  n  )  [inline]

Idea for future:
Convert to using gsl_alloc_arrays()

Definition at line 76 of file gsl_mroot_hybrids.h.


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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page