hybrids_base Class Reference

Base functions for gsl_mroot_hybrids. More...

#include <gsl_mroot_hybrids_b.h>

Inheritance diagram for hybrids_base:

gsl_mroot_hybrids

Detailed Description

Base functions for gsl_mroot_hybrids.

This is a trivial recasting of the functions that were in file scope in the GSL version of the hybrids solver.

Things to document:
Document the individual functions for this class, and possibly rename it.

Definition at line 46 of file gsl_mroot_hybrids_b.h.


Protected Member Functions

double enorm (const gsl_vector *f)
 Compute the Euclidean norm of f.
double scaled_enorm (const gsl_vector *d, const gsl_vector *f)
 Compute the norm of the vector $ \vec{v} $ defined by $ v_i = d_i f_i $.
double enorm_sum (const gsl_vector *a, const gsl_vector *b)
 Compute the norm of the vector $ \vec{v} $ defined by $ v_i = a_i + b_i $.
double compute_actual_reduction (double fnorm, double fnorm1)
 Compute the actual reduction.
double compute_predicted_reduction (double fnorm, double fnorm1)
 Compute the predicted reduction phi1p=|Q^T f + R dx|.
void compute_qtf (const gsl_matrix *q, const gsl_vector *f, gsl_vector *qtf)
 Compute $ Q^{T} f $.
int newton_direction (const gsl_matrix *r, const gsl_vector *qtf, gsl_vector *p)
 Compute the Gauss-Newton direction.
void gradient_direction (const gsl_matrix *r, const gsl_vector *qtf, const gsl_vector *diag, gsl_vector *g)
 Compute the gradient direction.
void minimum_step (double gnorm, const gsl_vector *diag, gsl_vector *g)
 Compute the point at which the gradient is minimized.

Member Function Documentation

void compute_qtf ( const gsl_matrix *  q,
const gsl_vector *  f,
gsl_vector *  qtf 
) [protected]

Compute $ Q^{T} f $.

Idea for future:
This is just right-multiplication, so we should use the O2scl cblas routines instead

double enorm ( const gsl_vector *  f  )  [protected]

Compute the Euclidean norm of f.

Idea for future:
Replace this with dnrm2 from cblas_base.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