pub enum OdeMethod {
Euler,
RK45,
BDF2,
}Expand description
Available ODE solver methods.
§Examples
let method = OdeMethod::RK45;
assert_eq!(method, OdeMethod::RK45);Variants§
Euler
Forward Euler — first-order, fixed step. Simple but inaccurate.
RK45
Dormand-Prince RK4(5) — adaptive, general-purpose. Best for non-stiff problems.
BDF2
BDF-2 — implicit, fixed step. Best for stiff problems.
Trait Implementations§
impl Copy for OdeMethod
impl Eq for OdeMethod
impl StructuralPartialEq for OdeMethod
Auto Trait Implementations§
impl Freeze for OdeMethod
impl RefUnwindSafe for OdeMethod
impl Send for OdeMethod
impl Sync for OdeMethod
impl Unpin for OdeMethod
impl UnsafeUnpin for OdeMethod
impl UnwindSafe for OdeMethod
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