mrgsolve
Classes | Macros | Typedefs | Functions | Variables
odeproblem.h File Reference
#include <math.h>
#include <vector>
#include "RcppInclude.h"
#include "mrgsolv.h"
#include "datarecord.h"

Go to the source code of this file.

Classes

class  odeproblem
 

Macros

#define MRGSOLVE_GET_PRED_CL   (pred[0])
 map CL to pred position 0 for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_VC   (pred[1])
 map VC to pred position 1 for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_KA   (pred[2])
 map KA to pred position 2 for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_Q   (pred[3])
 map Q to pred position 3 for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_VP   (pred[4])
 map VP to pred position 4 for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_K10   (pred[0]/pred[1])
 rate constants for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_K12   (pred[3]/pred[1])
 rate constants for $PKMODEL More...
 
#define MRGSOLVE_GET_PRED_K21   (pred[3]/pred[4])
 rate constants for $PKMODEL More...
 

Typedefs

typedef std::vector< rec_ptrreclist
 vector of datarecord objects for one ID More...
 
typedef std::vector< reclistrecstack
 vector of reclist vectors comprising a data set More...
 
typedef void(* init_func) (MRGSOLVE_INIT_SIGNATURE)
 $MAIN function More...
 
typedef void(* table_func) (MRGSOLVE_TABLE_SIGNATURE)
 $TABLE function More...
 
typedef void(* deriv_func) (MRGSOLVE_ODE_SIGNATURE)
 $ODE function More...
 
typedef void(* config_func) (MRGSOLVE_CONFIG_SIGNATURE)
 $PREAMBLE function More...
 
typedef void(* LSODA_ODE_SYSTEM_TYPE) (double t, double *y, double *dydt, odeproblem *_data)
 function to hand off to DLSODA More...
 
typedef void main_deriv_func(int *neq, double *t, double *y, double *ydot)
 
typedef void(* MRGSOLVE_ODE_FUNC) (int neq, double *t, double *y, double *ydot, std::vector< double > &param)
 

Functions

DL_FUNC tofunptr (SEXP a)
 
void neg_istate (int istate)
 
template<typename T , typename type2 >
void tofunptr (T b, type2 a)
 
void dosimeta (void *)
 
void dosimeps (void *)
 
double PolyExp (const double &x, const double &dose, const double &rate, const double &xinf, const double &tau, const bool ss, const std::vector< double > &a, const std::vector< double > &alpha, const int n)
 
Rcpp::List TOUCH_FUNS (const Rcpp::NumericVector &lparam, const Rcpp::NumericVector &linit, const Rcpp::CharacterVector &capture, const Rcpp::List &funs)
 

Variables

main_deriv_func main_derivs
 

Macro Definition Documentation

◆ MRGSOLVE_GET_PRED_CL

#define MRGSOLVE_GET_PRED_CL   (pred[0])

map CL to pred position 0 for $PKMODEL

◆ MRGSOLVE_GET_PRED_K10

#define MRGSOLVE_GET_PRED_K10   (pred[0]/pred[1])

rate constants for $PKMODEL

◆ MRGSOLVE_GET_PRED_K12

#define MRGSOLVE_GET_PRED_K12   (pred[3]/pred[1])

rate constants for $PKMODEL

◆ MRGSOLVE_GET_PRED_K21

#define MRGSOLVE_GET_PRED_K21   (pred[3]/pred[4])

rate constants for $PKMODEL

◆ MRGSOLVE_GET_PRED_KA

#define MRGSOLVE_GET_PRED_KA   (pred[2])

map KA to pred position 2 for $PKMODEL

◆ MRGSOLVE_GET_PRED_Q

#define MRGSOLVE_GET_PRED_Q   (pred[3])

map Q to pred position 3 for $PKMODEL

◆ MRGSOLVE_GET_PRED_VC

#define MRGSOLVE_GET_PRED_VC   (pred[1])

map VC to pred position 1 for $PKMODEL

◆ MRGSOLVE_GET_PRED_VP

#define MRGSOLVE_GET_PRED_VP   (pred[4])

map VP to pred position 4 for $PKMODEL

Typedef Documentation

◆ config_func

typedef void(* config_func) (MRGSOLVE_CONFIG_SIGNATURE)

$PREAMBLE function

◆ deriv_func

typedef void(* deriv_func) (MRGSOLVE_ODE_SIGNATURE)

$ODE function

◆ init_func

typedef void(* init_func) (MRGSOLVE_INIT_SIGNATURE)

$MAIN function

◆ LSODA_ODE_SYSTEM_TYPE

typedef void(* LSODA_ODE_SYSTEM_TYPE) (double t, double *y, double *dydt, odeproblem *_data)

function to hand off to DLSODA

◆ main_deriv_func

typedef void main_deriv_func(int *neq, double *t, double *y, double *ydot)

◆ MRGSOLVE_ODE_FUNC

typedef void(* MRGSOLVE_ODE_FUNC) (int neq, double *t, double *y, double *ydot, std::vector< double > &param)

◆ reclist

typedef std::vector<rec_ptr> reclist

vector of datarecord objects for one ID

◆ recstack

typedef std::vector<reclist> recstack

vector of reclist vectors comprising a data set

◆ table_func

typedef void(* table_func) (MRGSOLVE_TABLE_SIGNATURE)

$TABLE function

Function Documentation

◆ dosimeps()

void dosimeps ( void *  )

◆ dosimeta()

void dosimeta ( void *  )

◆ neg_istate()

void neg_istate ( int  istate)

◆ 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.

◆ tofunptr() [1/2]

DL_FUNC tofunptr ( SEXP  a)

◆ tofunptr() [2/2]

template<typename T , typename type2 >
void tofunptr ( b,
type2  a 
)

◆ TOUCH_FUNS()

Rcpp::List TOUCH_FUNS ( const Rcpp::NumericVector &  lparam,
const Rcpp::NumericVector &  linit,
const Rcpp::CharacterVector &  capture,
const Rcpp::List &  funs 
)

Variable Documentation

◆ main_derivs

main_deriv_func main_derivs