| MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHfx.h>


Public Member Functions | |
| ChFxCfunctionS (double(*mfunc)(double p[], void *my_data), int minvars, void *mdata=0) | |
| virtual void | Eval (ChMatrix<> &A, const ChMatrix<> &B) |
Class for A=f(B) math functions, where the function is defined by wrapping a C function of the 'old' type, i.e. a pointer to simple C call that works over arrays of doubles and return one value: double (*func)(double p[], void* my_data); as often used in C/C++ math libraries.
| chrono::ChFxCfunctionS::ChFxCfunctionS | ( | double(*)(double p[], void *my_data) | mfunc, |
| int | minvars, | ||
| void * | mdata = 0 |
||
| ) |
Create the function wrapper.
| mfunc | the pointer to the C function |
| minvars | the number of input vars (the size of double p[]) |
| mdata | generic user data, if needed as my_data for C function. |
CHRONO::ENGINE