Skip to contents

modelcompR keeps the symbolic Jacobians of systems it differentiated (up to 64 systems, then the cache starts again), the functions registered by register_symbolic() (including those of inline nonlinear solves, which compiled systems refer to by name) and the memo of the last inline linear solve. cache_info() reports their sizes; clear = TRUE empties the Jacobian cache and the memo (registered functions stay, as compiled systems need them).

Usage

cache_info(clear = FALSE)

Arguments

clear

Empty the caches that can be rebuilt.

Value

A named integer vector of cache sizes (before clearing).

Examples

cache_info()
#>  sensitivity_systems registered_functions   inline_linear_memo 
#>                    0                    5                    0