Repository navigation
Expand file tree
/
Copy pathREADME.Rmd
More file actions
44 lines (35 loc) · 1.76 KB
/
Copy pathREADME.Rmd
File metadata and controls
44 lines (35 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
output:
github_document:
toc: false
html_preview: false
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
# cppDE
<!-- badges: start -->
[](https://github.com/dModverse/cppDE/actions/workflows/R-CMD-check.yaml)
[](https://dmodverse.github.io/cppDE/)
<!-- badges: end -->
cppDE generates, compiles and runs C++ solvers for systems of ordinary
differential equations given as equations in R. The solvers return the
derivatives of the solution in the initial values and parameters, by forward
sensitivities or by a discrete adjoint, to first and second order, across time-
and state-triggered events. Integrators are variable-order BDF and Adams
methods, a Rosenbrock method of order 4 and an explicit Runge-Kutta pair, with
dense or sparse linear algebra. `cvode()` solves the same models with SUNDIALS
CVODES, `cppFUN()` generates algebraic functions with their derivatives, and
batches of conditions are solved in parallel. cppDE is the ODE backend of
dMod2.
## Installation
```r
# install.packages("remotes")
remotes::install_github("dModverse/cppDE")
```
Models are compiled at run time and need a C++17 compiler (Rtools on Windows)
and Python with SymPy, which reticulate provides on first use. SUNDIALS (for
`cvode()`), SuiteSparse/KLU (for sparse Jacobians) and OpenMP (for parallel
batches) are optional and detected at install time.
## License
MIT. Parts of the C++ solver core in `inst/include/cppde/` are derived from
SUNDIALS/CVODE (BSD-3-Clause) and Boost.Odeint (Boost Software License 1.0);
`inst/COPYRIGHTS` lists the files concerned and reproduces the license texts.