Recast model in terms of sum/prod
See also
Other Solver options and performance:
forderForceBase(),
getRxThreads(),
odeMethodToInt(),
rxIndLinState(),
rxIndLinStrategy(),
rxIsAutoSwitch(),
rxIsDense(),
rxIsImplicit(),
rxIsNonStiff(),
rxIsStiff(),
rxMemSummary(),
rxMemoryEstimate(),
rxOptExpr(),
rxProgress(),
rxSetProd(),
rxSetProgressBar(),
rxSetSum()
Examples
# \donttest{
pk <- function() {
model({
d/dt(depot) <- -ka * depot
d/dt(central) <- ka * depot - cl / v * central
})
}
writeLines(rxSumProdModel(pk))
#>
#>
#> ℹ parameter labels from comments are typically ignored in non-interactive mode
#> ℹ Need to run with the source intact to parse comments
#> d/dt(depot) = prod(-ka, depot)
#> d/dt(central) = sum(prod(ka, depot), -(prod(cl, 1/v, central)))
# }
