Skip to contents

Entries of a WorkPrecisionSet() carry tags (character strings): those of their setup (tags) and, unless the setup sets auto_tags = FALSE, the tags auto_tags(alg) derived from the algorithm: its order (order_5; not for variable order methods), adaptive or fixed_step, and the preset tags of OrdinaryDiffEq algorithms (explicit or implicit, dae, sde, rode, rosenbrock, exponential, partitioned, composite, adams, variable_order, multistep, firk, sdirk, esdirk, split).

Usage

auto_tags(alg)

tag_kind(tag)

get_tags(wp_set)

unique_tags(wp_set)

filter_by_tags(wp_set, ...)

exclude_by_tags(wp_set, ...)

merge_wp_sets(...)

Arguments

alg

An algorithm.

tag

Tags.

wp_set

A WorkPrecisionSet.

...

Tags, or for merge_wp_sets() the sets.

Value

auto_tags(), tag_kind() and unique_tags() return character vectors, get_tags() a list of them, and the others a WorkPrecisionSet.

Details

tag_kind(tag) classifies tags as "family", "trait", "role", "provider", "variant", "domain" or "unknown". get_tags(set) lists the tags of each entry and unique_tags(set) all tags, sorted. filter_by_tags(set, ...) keeps the entries carrying all the given tags, exclude_by_tags(set, ...) drops those carrying any of them, and merge_wp_sets(...) concatenates sets (keeping the tolerances, problem and error estimate of the first).

Examples

auto_tags(Tsit5())
#> [1] "order_5"  "adaptive" "explicit"
auto_tags(Rodas5P())
#> [1] "order_5"    "adaptive"   "implicit"   "rosenbrock"
tag_kind(c("rosenbrock", "adaptive", "reference", "foo"))
#> [1] "family"  "trait"   "role"    "unknown"