public class ComplexODEState extends Object implements Serializable
ComplexOrdinaryDifferentialEquation
,
SecondaryODE
,
ODEIntegrator
,
ODEStateAndDerivative
,
Serialized FormConstructor and Description |
---|
ComplexODEState(double time,
Complex[] primaryState)
Simple constructor.
|
ComplexODEState(double time,
Complex[] primaryState,
Complex[][] secondaryState)
Simple constructor.
|
Modifier and Type | Method and 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.
|
public ComplexODEState(double time, Complex[] primaryState)
Calling this constructor is equivalent to call ComplexODEState(time, state, null)
.
time
- timeprimaryState
- primary state at timeprotected Complex[][] copy(Complex[][] original)
original
- original array (may be null)public double getTime()
public int getPrimaryStateDimension()
getSecondaryStateDimension(int)
,
getCompleteStateDimension()
public Complex[] getPrimaryState()
getSecondaryState(int)
,
getCompleteState()
public int getNumberOfSecondaryStates()
public int getSecondaryStateDimension(int index)
index
- index of the secondary set as returned
by ExpandableODE.addSecondaryEquations(SecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)getPrimaryStateDimension()
,
getCompleteStateDimension()
public Complex[] getSecondaryState(int index)
index
- index of the secondary set as returned
by ExpandableODE.addSecondaryEquations(SecondaryODE)
(beware index 0 corresponds to primary state, secondary states start at 1)getPrimaryState()
,
getCompleteState()
public int getCompleteStateDimension()
The complete set of equations correspond to the primary set plus all secondary sets.
getPrimaryStateDimension()
,
getSecondaryStateDimension(int)
public Complex[] getCompleteState()
primary state
, followed
by all secondary states
in
increasing index ordergetPrimaryState()
,
getSecondaryState(int)
Copyright © 2016-2021 CS GROUP. All rights reserved.