Class FieldODEState<T extends RealFieldElement<T>>
java.lang.Object
org.apache.commons.math3.ode.FieldODEState<T>
- Type Parameters:
T- the type of the field elements
- Direct Known Subclasses:
FieldODEStateAndDerivative
Container for time, main and secondary state vectors.
- Since:
- 3.6
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFieldODEState(T time, T[] state) Simple constructor.FieldODEState(T time, T[] state, T[][] secondaryState) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected T[][]Copy a two-dimensions array.intGet the number of secondary states.T[]getSecondaryState(int index) Get secondary state at time.intgetSecondaryStateDimension(int index) Get secondary state dimension.T[]getState()Get main state at time.intGet main state dimension.getTime()Get time.
-
Field Details
-
time
Time. -
state
Main state at time. -
secondaryState
Secondary state at time.
-
-
Constructor Details
-
FieldODEState
Simple constructor.Calling this constructor is equivalent to call
FieldODEState(time, state, null).- Parameters:
time- timestate- state at time
-
FieldODEState
-
-
Method Details
-
copy
-
getTime
-
getStateDimension
public int getStateDimension()Get main state dimension.- Returns:
- main state dimension
-
getState
-
getNumberOfSecondaryStates
public int getNumberOfSecondaryStates()Get the number of secondary states.- Returns:
- number of secondary states.
-
getSecondaryStateDimension
public int getSecondaryStateDimension(int index) Get secondary state dimension.- Parameters:
index- index of the secondary set as returned byFieldExpandableODE.addSecondaryEquations(FieldSecondaryEquations)(beware index 0 corresponds to main state, additional states start at 1)- Returns:
- secondary state dimension
-
getSecondaryState
Get secondary state at time.- Parameters:
index- index of the secondary set as returned byFieldExpandableODE.addSecondaryEquations(FieldSecondaryEquations)(beware index 0 corresponds to main state, additional states start at 1)- Returns:
- secondary state at time
-