|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.ode.EquationsMapper
public class EquationsMapper
Class mapping the part of a complete state or derivative that pertains to a specific differential equation.
Instances of this class are guaranteed to be immutable.
SecondaryEquations
,
Serialized FormConstructor Summary | |
---|---|
EquationsMapper(int firstIndex,
int dimension)
simple constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EquationsMapper(int firstIndex, int dimension)
firstIndex
- index of the first equation element in complete state arraysdimension
- dimension of the secondary state parametersMethod Detail |
---|
public 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 data
DimensionMismatchException
- 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 dimension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |