Struct ModelDimensions
Defined in File model_dimensions.h
Inheritance Relationships
Derived Types
public amici::Model
(Class Model)public amici::ReturnData
(Class ReturnData)
Struct Documentation
-
struct ModelDimensions
Container for model dimensions.
Holds number of state variables, observables, etc.
Subclassed by amici::Model, amici::ReturnData
Public Functions
-
ModelDimensions() = default
Default ctor
-
inline ModelDimensions(int const nx_rdata, int const nxtrue_rdata, int const nx_solver, int const nxtrue_solver, int const nx_solver_reinit, int const np, int const nk, int const ny, int const nytrue, int const nz, int const nztrue, int const ne, int const ne_solver, int const nspl, int const nJ, int const nw, int const ndwdx, int const ndwdp, int const ndwdw, int const ndxdotdw, std::vector<int> ndJydy, int const ndxrdatadxsolver, int const ndxrdatadtcl, int const ndtotal_cldx_rdata, int const nnz, int const ubw, int const lbw, bool pythonGenerated = false, int ndxdotdp_explicit = 0, int ndxdotdx_explicit = 0, int w_recursion_depth = 0)
Constructor with model dimensions.
- Parameters:
nx_rdata – Number of state variables
nxtrue_rdata – Number of state variables of the non-augmented model
nx_solver – Number of state variables with conservation laws applied
nxtrue_solver – Number of state variables of the non-augmented model with conservation laws applied
nx_solver_reinit – Number of state variables with conservation laws subject to reinitialization
np – Number of parameters
nk – Number of constants
ny – Number of observables
nytrue – Number of observables of the non-augmented model
nz – Number of event observables
nztrue – Number of event observables of the non-augmented model
ne – Number of events
ne_solver – Number of events that require root-finding
nspl – Number of splines
nJ – Number of objective functions
nw – Number of repeating elements
ndwdx – Number of nonzero elements in the
x
derivative of the repeating elementsndwdp – Number of nonzero elements in the
p
derivative of the repeating elementsndwdw – Number of nonzero elements in the
w
derivative of the repeating elementsndxdotdw – Number of nonzero elements in the \( w\) derivative of \( xdot\)
ndJydy – Number of nonzero elements in the \( y\) derivative of \( dJy\) (shape
nytrue
)ndxrdatadxsolver – Number of nonzero elements in the \( x\) derivative of \( x_rdata\)
ndxrdatadtcl – Number of nonzero elements in the \( tcl\) derivative of \( x_rdata\)
ndtotal_cldx_rdata – Number of nonzero elements in the \( x_rdata \) derivative of \( total_cl \)
nnz – Number of nonzero elements in Jacobian
ubw – Upper matrix bandwidth in the Jacobian
lbw – Lower matrix bandwidth in the Jacobian
pythonGenerated – Flag indicating model creation from Matlab or Python
ndxdotdp_explicit – Number of nonzero elements in
dxdotdp_explicit
ndxdotdx_explicit – Number of nonzero elements in
dxdotdx_explicit
w_recursion_depth – Recursion depth of fw
Public Members
-
int nx_rdata = {0}
Number of states
-
int nxtrue_rdata = {0}
Number of states in the unaugmented system
-
int nx_solver = {0}
Number of states with conservation laws applied
-
int nxtrue_solver = {0}
Number of states in the unaugmented system with conservation laws applied
-
int nx_solver_reinit = {0}
Number of solver states subject to reinitialization
-
int np = {0}
Number of parameters
-
int nk = {0}
Number of constants
-
int ny = {0}
Number of observables
-
int nytrue = {0}
Number of observables in the unaugmented system
-
int nz = {0}
Number of event outputs
-
int nztrue = {0}
Number of event outputs in the unaugmented system
-
int ne = {0}
Number of events
-
int ne_solver = {0}
Number of events that require root-finding
-
int nspl = {0}
Number of spline functions in the model
-
int nw = {0}
Number of common expressions
-
int ndwdx = {0}
Number of nonzero elements in the
x
derivative of the repeating elements
-
int ndwdp = {0}
Number of nonzero elements in the
p
derivative of the repeating elements
-
int ndwdw = {0}
Number of nonzero elements in the
w
derivative of the repeating elements
-
int ndxdotdw = {0}
Number of nonzero elements in the \( w \) derivative of \( xdot \)
-
std::vector<int> ndJydy
Number of nonzero elements in the \( y \) derivative of \( dJy \) (dimension
nytrue
)
-
int ndxrdatadxsolver = {0}
Number of nonzero elements in the \( x \) derivative of \( x_rdata \)
-
int ndxrdatadtcl = {0}
Number of nonzero elements in the \( tcl\) derivative of \( x_rdata \)
-
int ndtotal_cldx_rdata = {0}
Number of nonzero elements in the \( x_rdata\) derivative of \( total_cl \)
-
int nnz = {0}
Number of nonzero entries in Jacobian
-
int nJ = {0}
Dimension of the augmented objective function for 2nd order ASA
-
int ubw = {0}
Upper bandwidth of the Jacobian
-
int lbw = {0}
Lower bandwidth of the Jacobian
-
bool pythonGenerated = false
Flag indicating model creation from Matlab or Python
-
int ndxdotdp_explicit = 0
Number of nonzero elements in
dxdotdx_explicit
-
int ndxdotdx_explicit = 0
Number of nonzero elements in
dxdotdp_explicit
-
int w_recursion_depth = 0
Recursion depth of fw
-
ModelDimensions() = default