pub trait VariableStepExplicitFirstSameAsLast<Y, U>where
Self: VariableStepExplicit<Y, U>,
Y: Tensor,
for<'a> &'a Y: Mul<Scalar, Output = Y> + Sub<&'a Y, Output = Y>,
U: TensorVec<Item = Y>,{
// Provided methods
fn slopes_and_error_fsal(
function: impl FnMut(Scalar, &Y) -> Result<Y, String>,
y: &Y,
t: Scalar,
dt: Scalar,
k: &mut [Y],
y_trial: &mut Y,
) -> Result<Scalar, String> { ... }
fn step_fsal(
&self,
y: &mut Y,
t: &mut Scalar,
y_sol: &mut U,
t_sol: &mut Vector,
dydt_sol: &mut U,
dt: &mut Scalar,
k: &mut [Y],
y_trial: &Y,
e: Scalar,
) -> Result<(), String> { ... }
}Expand description
First-same-as-last property for variable-step explicit ordinary differential equation solvers.
Provided Methods§
fn slopes_and_error_fsal( function: impl FnMut(Scalar, &Y) -> Result<Y, String>, y: &Y, t: Scalar, dt: Scalar, k: &mut [Y], y_trial: &mut Y, ) -> Result<Scalar, String>
fn step_fsal( &self, y: &mut Y, t: &mut Scalar, y_sol: &mut U, t_sol: &mut Vector, dydt_sol: &mut U, dt: &mut Scalar, k: &mut [Y], y_trial: &Y, e: Scalar, ) -> Result<(), String>
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.