lct_infection_state.h Source File
|
CPP API
|
lct_infection_state.h
Go to the documentation of this file.
98 // Use segment of the vector subcompartments of each InfectionState and sum up the values of subcompartments.
Provides the functionality to be able to work with subcompartments in an LCT model.
Definition: lct_infection_state.h:42
static constexpr const std::array< size_t, sizeof...(Ns)> m_subcompartment_numbers
Vector which defines the number of subcompartments for each infection state of InfectionState.
Definition: lct_infection_state.h:117
static Eigen::VectorX< FP > calculate_compartments(const Eigen::VectorX< FP > &subcompartments)
Cumulates a vector with the number of individuals in each subcompartment (with subcompartments accord...
Definition: lct_infection_state.h:93
InfectionStates InfectionState
Definition: lct_infection_state.h:44
static constexpr size_t get_first_index()
Gets the index of the first subcompartment of an infection state.
Definition: lct_infection_state.h:74
static constexpr size_t get_num_subcompartments()
Gets the number of subcompartments in an infection state.
Definition: lct_infection_state.h:58
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Generated by