Given a list of (unparsed) rate functions, construct the matrix of compartment flows.

build_flowmat(rates, compartment_names)

Arguments

rates

Unparsed list of rate functions (intermediate object within the stem_dynamics function)

compartment_names

vector of compartment_strata names

Value

matrix whose elements indicate the change in each compartment (columns) associated with each reaction event (rows).