Struct nyx_space::propagators::RK2Fixed
source · pub struct RK2Fixed {}
Expand description
RK2Fixed
is a fixed step RK4 (or midpoint method).
If initialized with an PropOpts.with_adaptive_step
, the variable step will not be taken into consideration.
Trait Implementations§
source§impl RK for RK2Fixed
impl RK for RK2Fixed
source§const ORDER: u8 = 2u8
const ORDER: u8 = 2u8
Returns the order of this integrator (as u8 because there probably isn’t an order greater than 255).
The order is used for the adaptive step size only to compute the error between estimates.
source§const STAGES: usize = 2usize
const STAGES: usize = 2usize
Returns the stages of this integrator (as usize because it’s used as indexing)
source§const A_COEFFS: &'static [f64] = _
const A_COEFFS: &'static [f64] = _
Returns a pointer to a list of f64 corresponding to the A coefficients of the Butcher table for that RK.
This module only supports implicit integrators, and as such,
Self.a_coeffs().len()
must be of
size (order+1)*(order)/2.
Warning: this RK trait supposes that the implementation is consistent, i.e. c_i = \sum_j a_{ij}.Auto Trait Implementations§
impl Freeze for RK2Fixed
impl RefUnwindSafe for RK2Fixed
impl Send for RK2Fixed
impl Sync for RK2Fixed
impl Unpin for RK2Fixed
impl UnwindSafe for RK2Fixed
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.