T
- the type of the field elementspublic class FieldODEStateAndDerivative<T extends RealFieldElement<T>> extends FieldODEState<T>
FirstOrderFieldDifferentialEquations
,
FieldSecondaryEquations
,
FirstOrderFieldIntegrator
Constructor and Description |
---|
FieldODEStateAndDerivative(T time,
T[] state,
T[] derivative)
Simple constructor.
|
FieldODEStateAndDerivative(T time,
T[] state,
T[] derivative,
T[][] secondaryState,
T[][] secondaryDerivative)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
T[] |
getDerivative()
Get derivative of the main state at time.
|
T[] |
getSecondaryDerivative(int index)
Get derivative of the secondary state at time.
|
copy, getNumberOfSecondaryStates, getSecondaryState, getSecondaryStateDimension, getState, getStateDimension, getTime
public FieldODEStateAndDerivative(T time, T[] state, T[] derivative)
Calling this constructor is equivalent to call FieldODEStateAndDerivative(time, state,
derivative, null, null)
.
time
- timestate
- state at timederivative
- derivative of the state at timepublic FieldODEStateAndDerivative(T time, T[] state, T[] derivative, T[][] secondaryState, T[][] secondaryDerivative)
time
- timestate
- state at timederivative
- derivative of the state at timesecondaryState
- state at time (may be null)secondaryDerivative
- derivative of the state at time (may be null)public T[] getDerivative()
public T[] getSecondaryDerivative(int index)
index
- index of the secondary set as returned
by FieldExpandableODE.addSecondaryEquations(FieldSecondaryEquations)
(beware index 0 corresponds to main state, additional states start at 1)Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.