|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Form| Constructor 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 parameters| Method 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 dimension
public 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 | |||||||||