Difference an incidence variable in a census matrix.

compute_incidence(censusmat, col_inds, row_inds)

Arguments

censusmat

matrix of compartment counts at census times, to be updated

col_inds

column indices for which incidence should be computed

row_inds

list of vectors of row indices for each of the incidence variables

Value

update the census matrix in place