Insert the compartment counts at a sequence of census times into an existing census matrix.

retrieve_census_path(censusmat, path, census_times, census_columns)

Arguments

censusmat

matrix of compartment counts at census times, to be updated

path

matrix containing the path to be censused.

census_times

vector of census times.

census_columns

vector of column indices to be censused (C++ indexing beginning at 0).

Value

matrix containing the compartment counts at census times.