compmod {lnar} | R Documentation |
Compiles the generated C source code of a parsed model using the inline package.
compmod(cout, name = "derivs")
cout |
A parsed model. |
name |
A string indicating the name of the compiled function, defaults to "derivs". |
Uses the inline package to compile the generated c code.
Returns a compiled function named as the name
argument and
is included in R's environment automatically, i.e. no
assignment is needed. The compiled function
has the following form in C:
double * name ( double * t, double * y, double * fout, double * vthetas)
We note again that there is no need to assign the return value to a
variable. The compmod
function loads the compiled function
directly to the R's environment.
Vasileios Giagos
The function parsemod
generates the c code for the
models. The transition density can be calculated with
calcdens
and MLEs are obtained with
optmod
.
## Not run: ##After generating a model "cout" compmod(cout,"derivs") #no need to assign the return value ## End(Not run)