bvp::gsl_function_wrapper Class Reference

#include <func.hpp>

Collaboration diagram for bvp::gsl_function_wrapper:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 gsl_function_wrapper (const realfunc &f, point p, size_t idx)
void set_params (const realfunc &f, point p, size_t idx)
gsl_function * get_gsl_function () const

Static Public Member Functions

static double takemyaddress (double xi, void *nothing)

Private Member Functions

 gsl_function_wrapper ()

Static Private Attributes

static point x
static size_t index = 1
static realfunc myfunc
static gsl_function * f = 0


Constructor & Destructor Documentation

bvp::gsl_function_wrapper::gsl_function_wrapper ( const realfunc f,
point  p,
size_t  idx 
)

00023                                                                   {
00024     myfunc = thefunc;
00025     x = p;
00026     index = idx;
00027     f -> function = &takemyaddress;
00028     f -> params = 0;
00029    
00030   }

Here is the call graph for this function:

bvp::gsl_function_wrapper::gsl_function_wrapper (  )  [private]


Member Function Documentation

void bvp::gsl_function_wrapper::set_params ( const realfunc f,
point  p,
size_t  idx 
)

00033                                                             {
00034     myfunc = thefunc;
00035     x = p;
00036     index = idx;
00037     f -> function = &takemyaddress;
00038     f -> params = 0;
00039   }

Here is the call graph for this function:

gsl_function * bvp::gsl_function_wrapper::get_gsl_function (  )  const

00041                                                             {
00042     return f;
00043   }

double bvp::gsl_function_wrapper::takemyaddress ( double  xi,
void *  nothing 
) [static]

00045                                                                     {
00046     x(index) = xi;
00047     nothing = 0;
00048     return myfunc(x);
00049   }


Member Data Documentation

point bvp::gsl_function_wrapper::x [static, private]

size_t bvp::gsl_function_wrapper::index = 1 [static, private]

gsl_function * bvp::gsl_function_wrapper::f = 0 [static, private]


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

Generated on Sat Jun 28 00:33:26 2008 by  doxygen 1.5.6