build_rate_adjmat: Construct an adjacency matrix for specifying which rates must...

View source: R/build_rate_adjmat.R

build_rate_adjmatR Documentation

Construct an adjacency matrix for specifying which rates must be updated when a transition occurs, with adjacency determined at the lumped population level.

Description

Constructs an adjacency matrix with rates given in the rows, and reactions on which they each depend given in columns. Thus, when a reaction occurs, all of the non-zero entries in the corresponding column must be updated.

Usage

build_rate_adjmat(rates, compartment_codes)

Arguments

rates

intermediate list of rate functions created within the stem_dynamics function

compartment_codes

vector of compartment codes.

Value

adjacency matrix


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.