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.

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