Package org.apache.commons.math3.ode
Class JacobianMatrices.JacobiansSecondaryEquations
java.lang.Object
org.apache.commons.math3.ode.JacobianMatrices.JacobiansSecondaryEquations
- All Implemented Interfaces:
SecondaryEquations
- Enclosing class:
JacobianMatrices
private class JacobianMatrices.JacobiansSecondaryEquations
extends Object
implements SecondaryEquations
Local implementation of secondary equations.
This class is an inner class to ensure proper scheduling of calls
by forcing the use of JacobianMatrices.registerVariationalEquations(ExpandableStatefulODE)
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
computeDerivatives
(double t, double[] y, double[] yDot, double[] z, double[] zDot) Compute the derivatives related to the secondary state parameters.int
Get the dimension of the secondary state parameters.
-
Constructor Details
-
JacobiansSecondaryEquations
private JacobiansSecondaryEquations()
-
-
Method Details
-
getDimension
public int getDimension()Get the dimension of the secondary state parameters.- Specified by:
getDimension
in interfaceSecondaryEquations
- Returns:
- dimension of the secondary state parameters
-
computeDerivatives
public void computeDerivatives(double t, double[] y, double[] yDot, double[] z, double[] zDot) throws MaxCountExceededException, DimensionMismatchException Compute the derivatives related to the secondary state parameters.- Specified by:
computeDerivatives
in interfaceSecondaryEquations
- Parameters:
t
- current value of the independent time variabley
- array containing the current value of the primary state vectoryDot
- array containing the derivative of the primary state vectorz
- array containing the current value of the secondary state vectorzDot
- placeholder array where to put the derivative of the secondary state vector- Throws:
MaxCountExceededException
- if the number of functions evaluations is exceededDimensionMismatchException
- if arrays dimensions do not match equations settings
-