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 
)

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

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 
)

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

Here is the call graph for this function:

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

00040                                                             {
00041     return f;
00042   }

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

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


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 Fri Jun 6 17:28:27 2008 by  doxygen 1.5.6