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 | |
|
) |
| | |
00022 {
00023 myfunc = thefunc;
00024 x = p;
00025 index = idx;
00026 f -> function = &takemyaddress;
00027 f -> params = 0;
00028
00029 }
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 |
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
The documentation for this class was generated from the following files: