Changelog
Source:NEWS.md
cppDE 0.13.15
- The reverse and forward-reverse modes of
bdfsolve the corrector equation of every step in the backward sweep, to a tenth of the local error test of the backward problem againstreltolandabstol, tested on the values: against the iteration matrix of the forward run and, where that cannot reach the test within ten iterations, against the iteration matrix at the accepted state. The gradient is the derivative of the method with the corrector equations solved, and so is the Hessian of forward-reverse. The forward sensitivities withsensErrCon = FALSEtake the corrector iterations of the value run and differ from it by what those iterations leave unconverged. Underadamsthe sweep transposes the iterations taken: the exactly solved Adams-Moulton step can be unstable on a stiff model at the step sizes of the value run. - A forward solve with
sensErrCon = FALSEtakes the steps of a value run up to rounding; on a long stiff run the two step sequences can part. - Under
adjointControl(refine = TRUE)abdforadamssweep reuses the factorizations of the extrapolated flow over intervals of equal length and sweeps all seed columns at once. - A root event at the last output time ends the solve on the state the event leaves.
- The event table of
cppODE()andcvode()has the columnsvar,value,methodandtimeorroot; any other column is an error that names it. The columnsterminalanddirectionare removed: a root event fires on crossings in both directions and the solve continues, androotfuncends a solve. -
compile()builds the objects of anoutputwith the makefiles ofR CMD SHLIB, so a user Makevars (R_MAKEVARS_USERor~/.R/Makevars) reaches the compile of every object as well as the link, and compiles every object anew. A source that fails to compile is an error that names it and shows the compiler output, also undercores > 1.
cppDE 0.13.14
- The tests that call
cvode()skip without SUNDIALS also where KLU is installed, and the states of a forward and a reverse solve on one grid are compared to rounding, not bit for bit.
cppDE 0.13.13
-
compile()applies thecompileArgsof a model to the source of that model only, also whenoutputlinks several models into one library; the step trace of one model and the KLU settings of a sparse one reach no other model. -
solveBatch()keeps the prepared parameters of a condition whose element ofparmsisNULL. -
cppFUN()functions withattach.input = TRUEappend an extra input with one value per row as a column.
cppDE 0.13.12
- The reverse mode of
bdfandadamstransposes the corrector iterations the forward run took, against the iteration matrix it factorized: the gradient equals the forward sensitivities on the same grid (sensErrCon = FALSE) to rounding, underadamson stiff models as well. - The forward sensitivities of
bdfandadamspass the corrector against the iteration matrix without the derivative of that matrix, at first and second order. - Under
adjointControl(refine = TRUE)a reverse solve also returns$correction, per seed column the first-order change of the seeded functional from the computed trajectory to the one the refined sweep differentiated, so value plus correction and the gradient belong to one function. A model compiled against earlier headers is refused underrefineuntil it is compiled again. -
solveBatch()takes acotangentwith another number of seed columns than the prepared one.
cppDE 0.13.11
- The backward sweep of a second-order reverse solve with a multistep method sweeps all cotangent columns at once, step by step: the Jacobian and factorization of a step serve every column.
- A reverse solve that integrates for a sweep in the same call keeps only the part of the multistep history that the sweep reads: the initial state; under
adjointControl(refine = TRUE)the state at the start of every step; underadjointControl(trace = TRUE)the whole history. A store kept withkeepStore = TRUEfor a later solve keeps the whole history. - An arena of dual numbers goes back to the pool with at most 128 MB of storage, so that a solve with many tangents returns the rest of the memory to the system.
cppDE 0.13.10
- Every derivative the solvers use is exact; no difference quotient is left:
- The first step of every method comes from the second time derivative of the solution,
J f + df/dt, generated with the model. A multistep method that restarts at order 1 after repeated error test failures takes the step this curvature allows. - The second time derivative of a root condition along the solution, which the second order of an event time reads, is generated for models with forcings too, from the second derivative of the interpolant of the forcing.
- Where switches slide, the derivatives of the Filippov weights come from the implicit function theorem on the generated gradients of the switches’ rates: the Jacobian of the slide and the time derivative of that Jacobian, the derivatives of the exit roots, the terms of the second-order adjoint and the sensitivities and adjoint of
cvode().
- The first step of every method comes from the second time derivative of the solution,
- The dual types have a run-time tangent width only. Sources generated by an earlier cppDE are generated again before they compile against these headers.
cppDE 0.13.9
New
releaseStore()frees the checkpoints of a reverse solve kept withkeepStore = TRUEat once instead of at the next garbage collection; a solve given a released store integrates again.Under
derivMode = "forward-reverse"the tangents enter the error test and the first step as in a forward solve, bysensErrCon(defaultTRUE);sensErrCon = FALSEkeeps the step grid independent of the directions of the tangent. A model generated by an earlier cppDE ignoressensErrConunder forward-reverse until it is generated and compiled again.install_libs()is removed; the function isinstallLibs().cppDE has a site, https://dmodverse.github.io/cppDE/: the reference, Get started, a Guide in eight chapters, the methods in ten articles, two worked examples and the benchmarks against SUNDIALS CVODES. The methods articles replace the PDF vignette
Methods, andR.rspis not suggested. The demos are articles of the site:basicsis Get started,saltationandfitCoPtare the worked examples;demo()lists none.
cppDE 0.13.8
- The code generators read no environment variables;
CPPDE_PY_DIR,CPPDE_JAC,CPPDE_LINEARandCPPDE_VECTORISEare removed.
cppDE 0.13.7
The dense LU factorization of the step path, the solves with it and the products of the corrector and Nordsieck updates run in plain loops for systems up to 64 states, outside the lock under which OpenBLAS hands out work buffers.
Batches,
evaluateBatch()andevaluateMany()run on the cores asked for, at most the processors, also with fewer conditions or sets than cores, so that OpenMP keeps the thread team from one call to the next;attr(, "threads")of a batch reports that count.New
evaluateMany()evaluates argument sets, one percppFUN()object, in one parallel region.cppFUN()withderivMode = "forward-reverse"also emits<model>_vjp_ad, a plain C entry of forward over reverse that native code can call from several threads at once.
cppDE 0.13.6
The arena that holds the tangents of temporaries and the scratch buffers of the steppers goes back to a pool when the outermost scope of a solve closes, with at most 1 GB of storage, and the next solve on any thread takes it from there. The memory of a process stays bounded when OpenMP ends and starts threads.
Solves with second-order sensitivities release the temporaries of every step, so that their memory does not grow with the steps. An allocation that fails in the arena is an R error.
The first step of a forward solve is estimated from the tangents the right-hand side returns; the step grid of forward solves with sensitivities changes within the tolerance.
cppde::dual2ndhas compound assignments with adual2ndoperand that keep the Hessian. Copies, moves and the results of LU solves of adual2ndwrite the value layer only where it is bound.
cppDE 0.13.5
ptc()ends with Newton steps until every solved variable is withinreltol * (abs(x) + abstol)of the root, so that a variable many orders below the others is resolved relative to itself and the root within one basin does not depend on the start.With
flow = TRUE,ptc()returns a stable steady state: at an unstable root it continues along the unstable direction;controls = list(stability = FALSE)accepts any root of the flow.controls = list(stabilityTol = )counts a root as stable while the real part of the leading Jacobian eigenvalue on the kernel ofCis at moststabilityTol, default 0.The solver of
ptc()is available to the compiled code of other packages throughR_GetCCallable("cppDE", "cppde_ptc_v1"), safe in threads; the signature is insrc/ptc.cpp.ptc()takes the tolerances asreltolandabstolonly.
cppDE 0.13.4
-
solveODE()withderiv2 = TRUEand atangentbut nohessiantakes the second derivative of the inputs as zero.
cppDE 0.13.3
compile()builds in parallel on Windows too: separate libraries side by side oncoresworkers, a combinedoutputwithmake -j.Models of the Sundials backend with events compile on Windows.
cppDE 0.13.2
Breaking: the generated solve entries take one named argument list. Models generated by an earlier cppDE are refused with a message; generate and compile them again.
solveODE(),solveODEBatch()andprepareBatch()takemaxOrder, an upper bound on the order of"bdf"and"adams", andstald, stability limit detection for"bdf"(off by default), on both backends. Both are set per solve; the compiled model does not change.
cppDE 0.13.0
Breaking:
piis the number in every expression, as in R; a state, parameter, forcing or variable namedpiis an error.Eis a name; Euler’s number isexp(1).Breaking: expressions read as R reads them.
&and|are&&and||,round()rounds half to even, andifelse()andtrunc()are new. A chained comparison such ast1 < time < t2,%%,%/%,%,//,~,@,<-without a space and an unknown function are errors that name the construct.A state switch whose branches both push the solution onto the switching surface slides along it (Filippov) instead of stopping with an error, and several switches slide at once. Values and first- and second-order sensitivities on the native backend, first-order sensitivities on
cvode(), reverse gradients on both, and the forward-reverse curvature.Switches that cross at the same time take one saltation each. A root crossed at a small rate takes the saltation: the crossing counts as tangential only where the rate is negligible against the terms it is summed from, not below a fixed 1e-15.
A switch whose root is zero at
t0, at a fixed event or after a crossing of that root takes the side the solution leaves to, on both backends, and the sensitivities take the jump once.abs(),min()andmax()of a state or of the time are switches: the solver locates the kink as a root, as for a comparison. A comparison of switches follows their modes. The sensitivities of every order take the kink or jump.floor(),ceiling(),round()andtrunc()of a state or of the time in an ODE right-hand side are an error.At a kink or step the derivative is that of the branch the value takes, forward and reverse alike, in
cppFUN()and the symbolic Jacobians.solveODE(),solveODEBatch()andsolveBatch()reject a parameter named twice inparms.The demos
basics,saltationandfitCoPtreplace the scripts ininst/examples/.saltationchecks the sensitivities across events, switches and sliding against symbolic solutions.
cppDE 0.12.1
- A switch on the time, such as the pulse
piecewise(1, time > ts && time <= t2, 0), is located as a root like a switch on a state, on both backends.cvode()resolves such a pulse also where the right-hand side is zero before it, and the sensitivities of the native backend take the jump where a parameter moves the switching time. -
!after an operator, as ink*!(x > 1), parses. It negates as in R, up to the next&&,||, comma or closing bracket. -
?expressionsexplains arithmetic, comparisons and logic, with an example that solves the same equations withcppODE()andcvode().
cppDE 0.12.0
- New
adjointControl(), passed asadjointtosolveODE(),solveODEBatch(),prepareBatch()andsolveBatch(), controls what a reverse solve does beyond the gradient. Withrefine = TRUEthe sweep is checked step by step against the local error test of the CVODES backward problem: the cotangent of the states toreltolandabstol, and withgradtoleach step’s share of the gradient toreltolandgradtol. A tolerance thereby means the same as on acvode()reverse model. A step that fails is swept again in substeps.bdfandadamssweep the flow between their grid points by extrapolated linearly implicit Euler instead of the multistep scheme, so their gradient is that of the flow along the computed trajectory. Withtrace = TRUEthe solve returns$adjoint, the grid and adjoint of the sweep and, underrefine, the substeps each step took. - Breaking:
solveODE(),solveODEBatch()andprepareBatch()loseadjointGridanderrWeights, andsolveBatch()loseserrWeights.adjoint = adjointControl(trace = TRUE)returns the grid as$adjointin place of$adjointGrid; the step-size weights have no replacement. - Breaking: the value pass of a reverse solve takes the grid of a value run, as the forward run of CVODES’ adjoint analysis does.
sensErrConintegrates no control tangent there and has no effect on a reverse model. Where that grid misses the gradient, as on a trajectory at rest or under a forcing the state does not see, useadjointControl(refine = TRUE). - Breaking: the limit of consecutive rejected steps is the argument
maxattemptsofsolveODE(),solveODEBatch(),prepareBatch()and of the per-condition lists. -
install_libs()is renamedinstallLibs(); the old name remains as a deprecated alias. -
ptc()takes the tolerances incontrolsasreltolandabstol, as the solvers do. The old namesrtolandatolstill work and warn. - The help pages state every default, list the fields of
$diagnosticsand the columns of$tracein?solveODE, and give the signatures and shapes of the functionscppFUN()returns.?solveODEmarkscotangentas optional wherekeepStore = TRUElets a reverse solve run without one. -
cvode()reverse models take events androotfunc: the forward run is split at the jumps, one CVODES memory per stretch, and the backward sweep takes the adjoint and the gradient through each jump, including event times that move with the parameters or the state. They also takeadjointControl(gradtol =), which puts the gradient quadrature into the backward problem’s error test. - In
cvode()reverse models with a sparse Jacobian every KLU setup factorizes afresh, so the replay from a checkpoint in the backward pass takes the steps the run stored. -
adamssolves the corrector by Newton’s method, as CVODES does with a linear solver attached, in place of the PECE fixed point; the step trace losespece_itersandpece_diverged. - The Newton step on an iteration matrix factorized at an earlier gamma takes the factor gamma / gammap, and the BDF scaling 2 / (1 + gamrat) only under BDF.
- The reverse sweep of
bdfandadamsreuses the operators of a step only for a later step of the same size whose history rescales by the same factor. -
rb4has fourth order also on a right-hand side that reads the time or a forcing: the coefficient of df/dt in the fourth stage has the sign of the method. - Reverse sweeps: the transposed solve refines against a held factorization where that is cheaper than factorizing each step, generated kernels keep their temporaries on the stack, the pullbacks of the right-hand side and of the Jacobian take one pass each, and KLU skips the check of the matrices the generated code assembles.
-
solveBatch()gainsstore, the checkpoint stores of a prepared reverse batch. -
compile(output =)builds the objects of the combined librarycoresat a time. -
installLibs()and./configurebuild SUNDIALS 7.9.0 and SuiteSparse 7.14.1 by default, with the CMake option names of SUNDIALS 7.7 and later; older pins keep the old names../configureprefers the cache prefix of the pinned versions over the lexically last one. -
adjointControl(trace = TRUE)returnsfailuresin$adjoint, the checked steps that met the test at no number of substeps;etaisNAwherebdfandadamssweep the flow. - The colored Jacobian, which
CPPDE_JAC = "colour"forces and large sparse models choose, compiles: the reverse Jacobian-vector product seeds no parameters. - The checked sweep keeps the seeds before a step’s start, and the extrapolated flow takes intervals in either direction of time.
-
cvode()reverse models on KLU factorize afresh throughSUNLinSol_KLUReInit()rather than a SUNDIALS internal. - A comparison in the right-hand side whose sides differ by an amount that reads a state, in
piecewise()or a logical operator, andHeaviside()orsign()of such an amount switch where that amount crosses zero, on both backends. The solve holds each switch as a mode, locates the root and sets the mode there, so forward tangents of first and second order, the reverse gradient and the curvature, andcvode()’s forward and adjoint sensitivities take the jump of f. A switch adds no output row and is not limited bymaxroot. A solution that slides along a switching surface stops with an error. -
cvode()reverse models with root events interpolate the forward state by Hermite, also at the start of every stretch after a root. - Root events that cross zero within one step fire one by one at their crossing times, the earliest first.
- A terminal
rootfuncends the output with one row at the root. -
./configurefinds a SUNDIALS built with MPI, as Debian ships it: it adds the MPI link flags, so the probe links andcvode()is enabled. -
erf(),erfc()andatan2()take forward derivatives of first and second order, socppODE()withderivMode = "forward"or"forward-forward"andcppFUN()accept them ascvode()and the reverse modes do.
cppDE 0.11.4
-
forcingValues()builds with clang and libc++ (macOS):R_NO_REMAPbefore the R headers, as inptc().
cppDE 0.11.3
- A forcing holds the value of the first and last point outside them, and a single point gives a constant. Both apply to
cppODE()andcvode()models. - New
forcingValues()evaluates forcings as the models see them.
cppDE 0.11.2
-
ptc()builds with clang and libc++ (macOS):R_NO_REMAPbefore the R headers.
cppDE 0.11.1
-
ptc(): the absolute floor of the residual scale of a row isatoltimes the largest partial derivative in that row, not the diagonal entry.
cppDE 0.11.0
- New
ptc(): steady state of acppFUN()model by pseudo-transient continuation, with linear constraintsC x = totaland positive variables. Implicit Euler steps under local error control follow the flow to a stable steady state and become Newton steps near it;flow = FALSEsolves plain equations. -
rootfunc = "equilibrate"stops once every|dx/dt| <= roottol |x| + abstol, in both backends, in place of the absolute|dx/dt| < roottol.
cppDE 0.10.5
-
derivMode = "reverse"and"forward-reverse"return the gradient the forward mode returns also where the trajectory is at rest or small againstabstol / reltol. The forward run integrates a control tangent,z' = J(x) zalong a fixed direction of the initial state, on the same steps as the state, and the error of that tangent joins the error of the state in the error test, as the error of a sensitivity does undersensErrCon.sensErrCon = FALSE, accepted by both reverse modes, keeps the grid of a value-only run. Reverse models withmethod = "tsit5"generate their Jacobian for it. - With
sensErrCon = FALSEthe order-decrease candidate of"bdf"and"adams"reads the state alone, as the error test does.
cppDE 0.10.4
- A pulse such as
piecewise(1, time > ts && time <= t2, 0)on a state at rest is not stepped over, under every method, with and without sensitivities.cppODE()solves every comparison,Heaviside()andsign()of the right-hand side on time and parameters alone that is affine in time for the switching time. The solve stops a few doubles in front of each switching time inside the grid, followsfover them to the jump and restarts past it, as at a jump in time. The switching times add no output rows, and the reverse mode transposes the crossing. - After an event,
"rb4"and"tsit5"with dense output also restart their step-size controller, and"tsit5"evaluates the first stage anew.
cppDE 0.10.3
- A
"bdf"or"adams"solve crosses a jump of the right-hand side in time, such as the step inputpiecewise(0, time - ts < 0, 1), also from rest under a tightabstol. When the step size fails at the resolution oft, the solve locates the jump off(t, x)intwithin the failed step, followsfover the few doubles up to it and restarts on the far side as after an event. With no jump ahead, it restarts where it stands, once per point of time. The reverse mode transposes both. A stall that persists stops at once with “Step size fell below the resolution of t”.
cppDE 0.10.2
- A
"bdf"or"adams"solve with sensitivities that starts late under a tight tolerance takes a first step. The first-step estimate takes the geometric mean of the bounds where a sensitivity crosses them, as CVODES’cvHindoes, and the first step of every method is at least four ticks ofmax(|t0|, |t_final|, 1). - A fixed-time event fires only from the first time of the integration grid up to, but not including, the last one, and
includeTimeZeroadds 0 to that grid. An event before the grid or at the last time is not applied, and none adds a row beyond the last requested time. Two consecutive solves over[t0, t1]and[t1, t2]reproduce one solve over[t0, t2], which multiple shooting relies on. A grid of a single time applies the events at that time, as the start of a longer grid does. The rule holds for event times that depend on parameters, in the batch, in the reverse mode and incvode(). - The reverse mode counts the cotangent of the first output row once when a fixed event sits at the first time.
- A reverse solve over a single time integrates nothing: the cotangent of the initial state is the seed and the parameters receive only what an event at that time contributes.
-
cvode()reports the state after an event at the first time in the first row, as the native backend does, and applies no event that lies before the first time.
cppDE 0.10.1
-
cppFUN()builds"forward"only by default."forward-reverse"is a separate mode;"reverse"does not build it. - The forward-reverse
vjpis generated as derivative code instead of runningvjpover a dual. - Products of four or more factors are differentiated through shared prefix and suffix products, and chained adjoints and tangents stay one factor. Reverse and forward-reverse code grows linearly, not quadratically, with product length.
cppDE 0.10.0
-
Reverse mode.
cppODE(..., derivMode = "reverse")computes the gradient of a seeded functional by a discrete adjoint, at a cost that does not grow with the number of parameters."forward-reverse"adds the curvature, the Hessian applied to the tangent, and"forward-forward"the full Hessian. All four methods, events, roots, forcings, the sparse solver and the batch entries are covered.cvode(..., derivMode = "reverse")wraps the CVODES adjoint behind the same interface.keepStore/storereuse a forward pass,errWeightsweights the step size by the adjoint andadjointGridreturns the backward grid. -
Derivative names. Arguments and results are called
tangent,hessian,cotangentandcurvature, replacingsens1ini/sens1,sens2ini/sens2,seed/adjointandseedTangent/adjoint2.cppFUN()takestangentX,tangentP,hessianXandhessianP,evaluate()returnsy,tangentandhessian, andvjp()covers both orders.funCpp()is renamedcppFUN(); no old name is kept as an alias. -
Code generation on an expression graph. The code generator builds a hash-consed expression graph of the model and differentiates it by automatic differentiation; SymPy is left for unusual syntax. Generation grows linearly with the model, long linear sums become tables and regular structure becomes loops.
derivMode = "symbolic"andderivSymb()are gone, and acppFUN()object runs compiled code only. -
solveODE(..., sensErrCon = FALSE)lets forward sensitivities ride the grid of a value run. Tangent storage is allocated on the heap, without a compile-time limit (nStackis gone). -
Bug fixes. Second derivatives through fixed and root events, including resets and roots that read the clock, agree with forward over forward to 1e-10. The upper half of
$hessiandoes not drift on long stiff runs. Unnamed models get distinct names also underset.seed(). The CVODES adjoint converges on models with many parameters and returns the result through the batch. A forcing that multiplies a state compiles,cvode()reads aterminalcolumn given as text, and therb4initial step and time-only sparse Jacobian entries are right. -
codegenAvailable()reports whether a model can be generated and compiled without installing anything; the examples run only then. - Python 3.9 or newer and R 4.3 or newer are required. The methods vignette covers the reverse mode and benchmarks against CVODES, and every export has an example.
cppDE 0.9.5
- OpenMP is detected on Windows:
configure.winreadsSHLIB_OPENMP_CXXFLAGSfrom theMakeconfunder the architecture subdirectory, and models build with-fopenmp.
cppDE 0.9.4
- A threaded BLAS does not deadlock a forked worker. BLAS is pinned to one thread for the width of every
fork()and restored in the parent. -
forkGuard()reports which BLAS cppDE steers, the BLAS thread count and whether the handler is installed. The guard is installed when the DLL loads. - The BLAS thread-count probe covers FlexiBLAS and BLIS alongside MKL and OpenBLAS.
- The Windows branch of that probe finds the BLAS, so the two-runtime guard applies there too.
- The package has a
src/, holding the fork guard’s entry point.
cppDE 0.9.3
- A
piecewisetranslates, ascppde::select(cond, a, b). Both branches are evaluated, so each has to be safe to evaluate. -
&&,||and!are accepted in equations, grouped by Python’s parser. - An expression that does not parse names itself and gives a reason.
- A model symbol cannot collide with an identifier the generator emits, such as
std. - A symbol named after a C++ keyword compiles,
defaultandintincluded. - A symbol named after a Python keyword is rejected and named. SymPy parses through Python’s parser.
- The
doublelocals of a root event’sG_ttlambda are named by position. -
cppde::value_of(x)is the value accessor across arithmetic types, both dual orders and their expression templates.
cppDE 0.9.2
- A root event whose crossing falls exactly on an evaluated time fires.
- A root event fires once per crossing.
- A fixed event that makes a root condition true fires it, with the resets riding on the jump’s surface. Terminal conditions are excluded.
- The step size is re-estimated after every event, not only for the multistep methods.
-
funCpp()substitutes all symbols in one pass. -
compile()passes the OpenMP and KLU flags that the constructors recorded on the model once. -
inst/examples/example_saltation.Rchecks the sensitivity transport against a SymPy solution to first and second order, over five models. - Generated entry points are dispatched by name and shared object rather than by a cached address, so loading and unloading are without consequence. A model whose library is gone names what it is missing.
- Scoping the lookup to one shared object also stops two models sharing an entry point name from reaching into each other.
-
clearNativeSymbols()drops the remembered name pairings. It is not needed after loading or unloading.
cppDE 0.9.0
-
solveODEBatch()solves many conditions in one.Call, over OpenMP threads, with results identical to the serial path. -
prepareBatch()andsolveBatch()reuse a validated handle across solves. -
batchAvailable()reports why a batch would run serially.
cppDE 0.8.4
-
./configuredetects SUNDIALS, SuiteSparse/KLU and OpenMP by linking a test binary; a missing library disables only the feature that needs it. -
install_libs()builds SUNDIALS and SuiteSparse into a per-user cache.
cppDE 0.8.3
-
funCpp()compiles algebraic functions with optional derivatives, through forward-mode AD or analytic SymPy derivatives.
cppDE 0.8.2
-
solveODE()integrates a model and returns states with first and second order parameter sensitivities. -
diagnostics()prints the solver statistics.
cppDE 0.8.0
-
compile()builds generated sources throughR CMD SHLIB. - Native symbol lookups are cached;
clearNativeSymbols()drops the cache.
cppDE 0.7.10
- C++ generation for ODE, CVODE and funCpp models, with common subexpression elimination and Jacobian sparsity detection.
cppDE 0.7.7
- Rosenbrock4 and Tsit5 single-step steppers with embedded error estimate and dense output.
cppDE 0.7.6
- Variable-order BDF/NDF and Adams multistep steppers in Nordsieck form, with a Newton corrector.
cppDE 0.7.2
- Expression templates collapse right-hand side temporaries into one fused chain-rule loop.