Package org.hipparchus.ode
Class FieldODEStateAndDerivative<T extends RealFieldElement<T>>
- java.lang.Object
-
- org.hipparchus.ode.FieldODEState<T>
-
- org.hipparchus.ode.FieldODEStateAndDerivative<T>
-
- Type Parameters:
T
- the type of the field elements
public class FieldODEStateAndDerivative<T extends RealFieldElement<T>> extends FieldODEState<T>
Container for time, main and secondary state vectors as well as their derivatives.
-
-
Constructor Summary
Constructors Constructor Description FieldODEStateAndDerivative(T time, T[] primaryState, T[] primaryDerivative)
Simple constructor.FieldODEStateAndDerivative(T time, T[] primaryState, T[] primaryDerivative, T[][] secondaryState, T[][] secondaryDerivative)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T[]
getCompleteDerivative()
Get complete derivative at time.T[]
getPrimaryDerivative()
Get derivative of the primary state at time.T[]
getSecondaryDerivative(int index)
Get derivative of the secondary state at time.-
Methods inherited from class org.hipparchus.ode.FieldODEState
copy, getCompleteState, getCompleteStateDimension, getNumberOfSecondaryStates, getPrimaryState, getPrimaryStateDimension, getSecondaryState, getSecondaryStateDimension, getState, getStateDimension, getTime
-
-
-
-
Constructor Detail
-
FieldODEStateAndDerivative
public FieldODEStateAndDerivative(T time, T[] primaryState, T[] primaryDerivative)
Simple constructor.Calling this constructor is equivalent to call
FieldODEStateAndDerivative(time, state, derivative, null, null)
.- Parameters:
time
- timeprimaryState
- primary state at timeprimaryDerivative
- derivative of the primary state at time
-
FieldODEStateAndDerivative
public FieldODEStateAndDerivative(T time, T[] primaryState, T[] primaryDerivative, T[][] secondaryState, T[][] secondaryDerivative)
Simple constructor.- Parameters:
time
- timeprimaryState
- primary state at timeprimaryDerivative
- derivative of the primary state at timesecondaryState
- state at time (may be null)secondaryDerivative
- derivative of the state at time (may be null)
-
-
Method Detail
-
getPrimaryDerivative
public T[] getPrimaryDerivative()
Get derivative of the primary state at time.- Returns:
- derivative of the primary state at time
- See Also:
getSecondaryDerivative(int)
,getCompleteDerivative()
-
getSecondaryDerivative
public T[] getSecondaryDerivative(int index)
Get derivative of the secondary state at time.- Parameters:
index
- index of the secondary set as returned byFieldExpandableODE.addSecondaryEquations(FieldSecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)- Returns:
- derivative of the secondary state at time
- See Also:
getPrimaryDerivative()
,getCompleteDerivative()
-
getCompleteDerivative
public T[] getCompleteDerivative()
Get complete derivative at time.- Returns:
- complete derivative at time, starting with
primary derivative
, followed by allsecondary derivatives
in increasing index order - See Also:
getPrimaryDerivative()
,getSecondaryDerivative(int)
-
-