libspatialSEIR  0.1
Bayesian Spatial SEIR Modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
CompartmentalModelMatrix.hpp
Go to the documentation of this file.
1 /*Copyright 2014, Grant Brown*/
2 
3 #ifndef SPATIALSEIR_INCLUDEFILES
4 #define SPATIALSEIR_INCLUDEFILES
5 
6 #include<math.h>
7 #include<cstring>
8 #include<vector>
9 #endif
10 
11 #ifndef COMPARTMENTAL_MODEL_MATRIX_INC
12 #define COMPARTMENTAL_MODEL_MATRIX_INC
13 #include<ModelContext.hpp>
14 
15 namespace SpatialSEIR
16 {
18  {
19  int *inData;
20  int *inRow;
21  int *inCol;
23  };
24 
26  {
27  public:
28  // Methods
29 
30  int genFromDataStream(int *indata, int *inrow, int *incol);
31  int createEmptyCompartment(int *inrow, int *incol);
32  long unsigned int marginSum(int margin, int slice);
34 
35  // Attributes
36 
37  int *data;
38  int *nrow;
39  int *ncol;
41 
42  };
43 }
44 
45 #endif
int * ncol
Definition: CompartmentalModelMatrix.hpp:39
Definition: CompartmentalModelMatrix.hpp:25
int * inData
Definition: CompartmentalModelMatrix.hpp:19
double steadyStateConstraintPrecision
Definition: CompartmentalModelMatrix.hpp:22
int createEmptyCompartment(int *inrow, int *incol)
Definition: CompartmentalModelMatrix.cpp:28
int * inRow
Definition: CompartmentalModelMatrix.hpp:20
int genFromDataStream(int *indata, int *inrow, int *incol)
Definition: CompartmentalModelMatrix.cpp:9
~CompartmentalModelMatrix()
Definition: CompartmentalModelMatrix.cpp:77
int * nrow
Definition: CompartmentalModelMatrix.hpp:38
long unsigned int marginSum(int margin, int slice)
Definition: CompartmentalModelMatrix.cpp:44
int * inCol
Definition: CompartmentalModelMatrix.hpp:21
IntMatrixMapType * dataMatrix
Definition: CompartmentalModelMatrix.hpp:40
int * data
Definition: CompartmentalModelMatrix.hpp:37
Eigen::Map< IntMatrixType, Eigen::ColMajor > IntMatrixMapType
Definition: ModelContext.hpp:21
Definition: CompartmentalModelMatrix.hpp:17