mrgsolve
Loading...
Searching...
No Matches
odeproblem.cpp File Reference
#include <cmath>
#include <vector>
#include "RcppInclude.h"
#include "odeproblem.h"
#include "mrgsolve.h"

Functions

void dosimeta (void *prob_)
void dosimeps (void *prob_)
void main_derivs (double t, double *y, double *ydot, odeproblem *data)
double PolyExp (const double &x, const double &dose, const double &rate, const double &xinf, const double &tau, const bool ss, const dvec &a, const dvec &alpha, const int n)
Rcpp::List TOUCH_FUNS (const Rcpp::List &funs, const Rcpp::S4 mod)

Function Documentation

◆ dosimeps()

void dosimeps ( void * prob_)

◆ dosimeta()

void dosimeta ( void * prob_)

◆ main_derivs()

void main_derivs ( double t,
double * y,
double * ydot,
odeproblem * data )

Derivative function that gets called by the solver.

Parameters
neqnumber of equations
tsolver time
ycurrent state
ydotleft hand side of differential equations
proban odeproblem object

◆ PolyExp()

double PolyExp ( const double & x,
const double & dose,
const double & rate,
const double & xinf,
const double & tau,
const bool ss,
const dvec & a,
const dvec & alpha,
const int n )

Calculate PK model polyexponentials.

◆ TOUCH_FUNS()

Rcpp::List TOUCH_FUNS ( const Rcpp::List & funs,
const Rcpp::S4 mod )

Call the $MAIN function from a model object.

Parameters
lparammodel parameter value
linitmodel initial contition values
Netanumber of rows in OMEGA
Nepsnumber of rows in SIGMA
capturevector of capture names
funsa list of model function pointers
Returns
list with updated initial conditions, number of paramerters, and number of equations