private class FirstOrderIntegratorWithJacobians.MappingWrapper extends java.lang.Object implements ExtendedFirstOrderDifferentialEquations
Modifier and Type | Field and Description |
---|---|
private double[][] |
dFdP
Derivatives of yDot with respect to parameters.
|
private double[][] |
dFdY
Derivatives of yDot with respect to state.
|
private double[] |
y
Current state.
|
private double[] |
yDot
Time derivative of the current state.
|
Constructor and Description |
---|
FirstOrderIntegratorWithJacobians.MappingWrapper()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
computeDerivatives(double t,
double[] z,
double[] zDot)
Get the current time derivative of the state vector.
|
int |
getDimension()
Get the dimension of the problem.
|
int |
getMainSetDimension()
Return the dimension of the main set of equations.
|
private final double[] y
private final double[] yDot
private final double[][] dFdY
private final double[][] dFdP
public FirstOrderIntegratorWithJacobians.MappingWrapper()
public int getDimension()
getDimension
in interface FirstOrderDifferentialEquations
public int getMainSetDimension()
The main set of equations represent the first part of an ODE state. The error estimations and adaptive step size computation should be done on this first part only, not on the final part of the state which represent an extension set of equations which are considered secondary.
getMainSetDimension
in interface ExtendedFirstOrderDifferentialEquations
total dimension
public void computeDerivatives(double t, double[] z, double[] zDot) throws DerivativeException
computeDerivatives
in interface FirstOrderDifferentialEquations
t
- current value of the independent time variablez
- array containing the current value of the state vectorzDot
- placeholder array where to put the time derivative of the state vectorDerivativeException
- this user-defined exception should be used if an error is
is triggered by user codeCopyright (c) 2003-2014 Apache Software Foundation