dot-rxFwdSensJacBlock: Full-system Jacobian for a first-order forward-sensitivity...

.rxFwdSensJacBlockR Documentation

Full-system Jacobian for a first-order forward-sensitivity model, reusing F_X

Description

Builds the full df()/dy() block for the sensitivity-expanded system (base states + ⁠rx__sens_*⁠ variational compartments) from the F_X/F_p pieces .rxJacobian(model) already produced. The base x base and sens x sens blocks are F_X (reused, no differentiation); only the sens x base block needs new symengine::D and it vanishes for state-independent (linear) systems. Requires .rxJacobian(model) (vars=TRUE) to have run.

Usage

.rxFwdSensJacBlock(model, state, params)

Arguments

model

symengine model environment (post .rxJacobian)

state

base ODE state names

params

sensitivity parameter names (calcSens)

Value

character vector of df(state)/dy(state) lines for the full system

Author(s)

Matthew L. Fidler


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