public class EquationsMapper extends Object implements Serializable
Instances of this class are guaranteed to be immutable.
SecondaryEquations,
Serialized Form| Constructor and Description |
|---|
EquationsMapper(int firstIndex,
int dimension)
simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
extractEquationData(double[] complete,
double[] equationData)
Extract equation data from a complete state or derivative array.
|
int |
getDimension()
Get the dimension of the secondary state parameters.
|
int |
getFirstIndex()
Get the index of the first equation element in complete state arrays.
|
void |
insertEquationData(double[] equationData,
double[] complete)
Insert equation data into a complete state or derivative array.
|
public EquationsMapper(int firstIndex,
int dimension)
firstIndex - index of the first equation element in complete state arraysdimension - dimension of the secondary state parameterspublic int getFirstIndex()
public int getDimension()
public void extractEquationData(double[] complete,
double[] equationData)
throws DimensionMismatchException
complete - complete state or derivative array from which
equation data should be retrievedequationData - placeholder where to put equation dataDimensionMismatchException - if the dimension of the equation data does not
match the mapper dimensionpublic void insertEquationData(double[] equationData,
double[] complete)
throws DimensionMismatchException
equationData - equation data to be inserted into the complete arraycomplete - placeholder where to put equation data (only the
part corresponding to the equation will be overwritten)DimensionMismatchException - if the dimension of the equation data does not
match the mapper dimensionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.