Instances of this class are guaranteed to be immutable.
SecondaryEquations
| Modifier and Type | Field and Description |
|---|---|
| private final int | dimension
Dimension of the secondary state parameters. |
| private final int | firstIndex
Index of the first equation element in complete state arrays. |
| private static final long | serialVersionUID
Serializable UID. |
| Access | Constructor and Description |
|---|---|
| public | EquationsMapper(final int
index of the first equation element in complete state arrays firstIndex, final int dimension of the secondary state parameters dimension)simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | extractEquationData(double[]
complete state or derivative array from which
equation data should be retrieved complete, double[] placeholder where to put equation data equationData)Extract equation data from a complete state or derivative array. |
| public int | Returns: dimension of the secondary state parametersGet the dimension of the secondary state parameters. |
| public int | Returns: index of the first equation element in complete state arraysGet the index of the first equation element in complete state arrays. |
| public void | insertEquationData(double[]
equation data to be inserted into the complete array equationData, double[] placeholder where to put equation data (only the
part corresponding to the equation will be overwritten) complete)Insert equation data into a complete state or derivative array. |
| dimension | back to summary |
|---|---|
| private final int dimension Dimension of the secondary state parameters. | |
| firstIndex | back to summary |
|---|---|
| private final int firstIndex Index of the first equation element in complete state arrays. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable UID. | |
| EquationsMapper | back to summary |
|---|---|
| public EquationsMapper(final int firstIndex, final int dimension) simple constructor.
| |
| extractEquationData | back to summary |
|---|---|
| public void extractEquationData(double[] complete, double[] equationData) throws DimensionMismatchException Extract equation data from a complete state or derivative array.
| |
| getDimension | back to summary |
|---|---|
| public int getDimension() Get the dimension of the secondary state parameters.
| |
| getFirstIndex | back to summary |
|---|---|
| public int getFirstIndex() Get the index of the first equation element in complete state arrays.
| |
| insertEquationData | back to summary |
|---|---|
| public void insertEquationData(double[] equationData, double[] complete) throws DimensionMismatchException Insert equation data into a complete state or derivative array.
| |