pub struct Bdf { /* private fields */ }Expand description
BDF / NDF solver for stiff ODEs and index-1 DAEs (orders 1-5).
Implementations§
Source§impl Bdf
impl Bdf
pub fn new() -> Self
Sourcepub fn with_max_order(max_order: usize) -> Self
pub fn with_max_order(max_order: usize) -> Self
Cap the maximum order. Useful to keep the method L-stable (max_order ≤ 2) for problems that need strict L-stability.
Sourcepub fn fixed_order(order: usize) -> Self
pub fn fixed_order(order: usize) -> Self
Pin the order. Note: BDF always starts at order 1 (single-step info
available at startup); fixed_order only acts as a soft floor and a
hard ceiling for adaptive selection.
Trait Implementations§
Source§impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Bdf
impl<S: Scalar + SimpleEntity + Conjugate<Canonical = S> + ComplexField> Solver<S> for Bdf
Source§fn solve<Sys: OdeSystem<S>>(
problem: &Sys,
t0: S,
tf: S,
y0: &[S],
options: &SolverOptions<S>,
) -> Result<SolverResult<S>, SolverError>
fn solve<Sys: OdeSystem<S>>( problem: &Sys, t0: S, tf: S, y0: &[S], options: &SolverOptions<S>, ) -> Result<SolverResult<S>, SolverError>
Solve the ODE problem.
Auto Trait Implementations§
impl Freeze for Bdf
impl RefUnwindSafe for Bdf
impl Send for Bdf
impl Sync for Bdf
impl Unpin for Bdf
impl UnsafeUnpin for Bdf
impl UnwindSafe for Bdf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more