pub trait VariableStepExplicitInternalVariables<Y, Z, U, V>where
Self: InterpolateSolutionInternalVariables<Y, Z, U, V> + Explicit<Y, U> + VariableStep,
Y: Tensor,
Z: Tensor,
for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>,
U: TensorVec<Item = Y>,
V: TensorVec<Item = Z>,{
// Required methods
fn slopes(
&self,
function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>,
evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>,
y: &Y,
z: &Z,
t: Scalar,
dt: Scalar,
k: &mut [Y],
y_trial: &mut Y,
z_trial: &mut Z,
) -> Result<Scalar, String>;
fn step(
&self,
function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>,
y: &mut Y,
z: &mut Z,
t: &mut Scalar,
y_sol: &mut U,
z_sol: &mut V,
t_sol: &mut Vector,
dydt_sol: &mut U,
dt: &mut Scalar,
k: &mut [Y],
y_trial: &Y,
z_trial: &Z,
e: Scalar,
) -> Result<(), String>;
// Provided method
fn integrate_and_evaluate_variable_step(
&self,
function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>,
evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>,
time: &[Scalar],
initial_condition: Y,
initial_evaluation: Z,
) -> Result<(Vector, U, U, V), IntegrationError> { ... }
}Expand description
Variable-step explicit ordinary differential equation solvers with internal variables.
Required Methods§
fn slopes( &self, function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>, evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>, y: &Y, z: &Z, t: Scalar, dt: Scalar, k: &mut [Y], y_trial: &mut Y, z_trial: &mut Z, ) -> Result<Scalar, String>
fn step( &self, function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>, y: &mut Y, z: &mut Z, t: &mut Scalar, y_sol: &mut U, z_sol: &mut V, t_sol: &mut Vector, dydt_sol: &mut U, dt: &mut Scalar, k: &mut [Y], y_trial: &Y, z_trial: &Z, e: Scalar, ) -> Result<(), String>
Provided Methods§
fn integrate_and_evaluate_variable_step( &self, function: impl FnMut(Scalar, &Y, &Z) -> Result<Y, String>, evaluate: impl FnMut(Scalar, &Y, &Z) -> Result<Z, String>, time: &[Scalar], initial_condition: Y, initial_evaluation: Z, ) -> Result<(Vector, U, U, V), IntegrationError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.