bvp::gsl_function_wrapper Class Reference
#include <func.hpp>
List of all members.
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 }
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 | |
|
) |
| | |
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
The documentation for this class was generated from the following files: