Package org.hipparchus.ode
Class ComplexODEState
- java.lang.Object
-
- org.hipparchus.ode.ComplexODEState
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ComplexODEStateAndDerivative
public class ComplexODEState extends Object implements Serializable
Container for time, main and secondary state vectors.- Since:
- 1.4
- See Also:
ComplexOrdinaryDifferentialEquation
,SecondaryODE
,ODEIntegrator
,ODEStateAndDerivative
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComplexODEState(double time, Complex[] primaryState)
Simple constructor.ComplexODEState(double time, Complex[] primaryState, Complex[][] secondaryState)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Complex[][]
copy(Complex[][] original)
Copy a two-dimensions array.Complex[]
getCompleteState()
Get complete state at time.int
getCompleteStateDimension()
Return the dimension of the complete set of equations.int
getNumberOfSecondaryStates()
Get the number of secondary states.Complex[]
getPrimaryState()
Get primary state at time.int
getPrimaryStateDimension()
Get primary state dimension.Complex[]
getSecondaryState(int index)
Get secondary state at time.int
getSecondaryStateDimension(int index)
Get secondary state dimension.double
getTime()
Get time.
-
-
-
Constructor Detail
-
ComplexODEState
public ComplexODEState(double time, Complex[] primaryState)
Simple constructor.Calling this constructor is equivalent to call
ComplexODEState(time, state, null)
.- Parameters:
time
- timeprimaryState
- primary state at time
-
-
Method Detail
-
copy
protected Complex[][] copy(Complex[][] original)
Copy a two-dimensions array.- Parameters:
original
- original array (may be null)- Returns:
- copied array or null if original array was null
-
getTime
public double getTime()
Get time.- Returns:
- time
-
getPrimaryStateDimension
public int getPrimaryStateDimension()
Get primary state dimension.- Returns:
- primary state dimension
- See Also:
getSecondaryStateDimension(int)
,getCompleteStateDimension()
-
getPrimaryState
public Complex[] getPrimaryState()
Get primary state at time.- Returns:
- primary state at time
- See Also:
getSecondaryState(int)
,getCompleteState()
-
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 byExpandableODE.addSecondaryEquations(SecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)- Returns:
- secondary state dimension
- See Also:
getPrimaryStateDimension()
,getCompleteStateDimension()
-
getSecondaryState
public Complex[] getSecondaryState(int index)
Get secondary state at time.- Parameters:
index
- index of the secondary set as returned byExpandableODE.addSecondaryEquations(SecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)- Returns:
- secondary state at time
- See Also:
getPrimaryState()
,getCompleteState()
-
getCompleteStateDimension
public int getCompleteStateDimension()
Return the dimension of the complete set of equations.The complete set of equations correspond to the primary set plus all secondary sets.
- Returns:
- dimension of the complete set of equations
- See Also:
getPrimaryStateDimension()
,getSecondaryStateDimension(int)
-
getCompleteState
public Complex[] getCompleteState()
Get complete state at time.- Returns:
- complete state at time, starting with
primary state
, followed by allsecondary states
in increasing index order - See Also:
getPrimaryState()
,getSecondaryState(int)
-
-