rxIsNonStiff: Check whether an ODE solving method is a purely non-stiff...

View source: R/rxsolve.R

rxIsNonStiffR Documentation

Check whether an ODE solving method is a purely non-stiff solver

Description

Returns TRUE for methods that are designed exclusively for non-stiff systems. Solvers like "lsoda" and "liblsoda" that automatically switch between stiff and non-stiff algorithms return FALSE, as do all stiff-only methods.

Usage

rxIsNonStiff(method)

Arguments

method

A character vector of method names or an integerish vector of method codes (as returned by odeMethodToInt()). Vectorised.

Details

Switchers ("lsoda" = 1, "liblsoda" = 2) and the inductive linearisation solver ("indLin" = 3) are excluded from both rxIsStiff() and rxIsNonStiff().

Value

A logical vector the same length as method. TRUE if the corresponding method is a purely non-stiff solver.

See Also

rxIsStiff(), rxIsImplicit(), odeMethodToInt()

Examples

rxIsNonStiff("dop853")                        # TRUE
rxIsNonStiff("lsoda")                         # FALSE (switches)
rxIsNonStiff("bdf")                           # FALSE (stiff-only)
rxIsNonStiff(c("lsode", "cvode", "bs32"))     # TRUE FALSE TRUE


rxode2 documentation built on July 28, 2026, 5:08 p.m.