Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrapezoidalStateDerivative"/> class.
 /// </summary>
 /// <param name="method">The trapezoidal method.</param>
 public TrapezoidalStateDerivative(Trapezoidal method)
 {
     _method = method.ThrowIfNull(nameof(method));
     _index  = method.StateManager.AllocateState(1);
     _states = method.IntegrationStates;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrapezoidalStateDerivative"/> class.
 /// </summary>
 /// <param name="method">The trapezoidal method.</param>
 public TrapezoidalStateDerivative(Trapezoidal method)
 {
     _method = method;
     _index  = method.StateManager.AllocateState(1);
     _states = method.IntegrationStates;
 }