Instances of this class are guaranteed to be immutable.
FieldExpandableODE
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Serializable UID. |
| private final int[] | start
Start indices of the components. |
| Access | Constructor and Description |
|---|---|
| pack-priv | FieldEquationsMapper(final FieldEquationsMapper<T>
former mapper, with one equation less (null for first equation) mapper, final int dimension of the equation state vector dimension)Create a mapper by adding a new equation to another mapper. |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkIndex(final int
index of the equation, must be between 0 included and
index)getNumberOfEquations() (excluded)Check equation index. |
| public T[] | Returns: equation dataindex of the equation, must be between 0 included and
index, final T[] getNumberOfEquations() (excluded)complete state or derivative array from which
equation data should be retrieved complete)Extract equation data from a complete state or derivative array. |
| public int | |
| public int | Returns: dimension of the complete set of equationsReturn the dimension of the complete set of equations. |
| public void | insertEquationData(final int
index of the equation, must be between 0 included and
index, T[] getNumberOfEquations() (excluded)equation data to be inserted into the complete array equationData, T[] 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. |
| public T[] | Returns: flat array containing the mapped state derivative, including primary and secondary componentsstate to map state)Map a state derivative to a complete flat array. |
| public T[] | Returns: flat array containing the mapped state, including primary and secondary componentsstate to map state)Map a state to a complete flat array. |
| public FieldODEStateAndDerivative | Returns: mapped statetime t, final T[] state array to map, including primary and secondary components y, final T[] state derivative array to map, including primary and secondary components yDot)Map flat arrays to a state and derivative. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Serializable UID. | |
| start | back to summary |
|---|---|
| private final int[] start Start indices of the components. | |
| FieldEquationsMapper | back to summary |
|---|---|
| pack-priv FieldEquationsMapper(final FieldEquationsMapper<T> mapper, final int dimension) Create a mapper by adding a new equation to another mapper.
The new equation will have index
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(final int index) throws MathIllegalArgumentException Check equation index.
| |
| extractEquationData | back to summary |
|---|---|
| public T[] extractEquationData(final int index, final T[] complete) throws MathIllegalArgumentException, DimensionMismatchException Extract equation data from a complete state or derivative array.
| |
| getNumberOfEquations | back to summary |
|---|---|
| public int getNumberOfEquations() Get the number of equations mapped.
| |
| getTotalDimension | back to summary |
|---|---|
| public int getTotalDimension() Return the dimension of the complete set of equations. The complete set of equations correspond to the primary set plus all secondary sets.
| |
| insertEquationData | back to summary |
|---|---|
| public void insertEquationData(final int index, T[] equationData, T[] complete) throws DimensionMismatchException Insert equation data into a complete state or derivative array.
| |
| mapDerivative | back to summary |
|---|---|
| public T[] mapDerivative(final FieldODEStateAndDerivative<T> state) Map a state derivative to a complete flat array.
| |
| mapState | back to summary |
|---|---|
| public T[] mapState(final FieldODEState<T> state) Map a state to a complete flat array.
| |
| mapStateAndDerivative | back to summary |
|---|---|
| public FieldODEStateAndDerivative Map flat arrays to a state and derivative.
| |