pub struct GeodesicEuler;Expand description
Geodesic Euler-Maruyama on a Riemannian manifold. x_{n+1} = Exp_{x_n}( f(x_n,t)*dt + g(x_n,t)*dW ) Strong order 0.5. Keeps state exactly on the manifold by using the Riemannian exponential map after each step.
Implementations§
Source§impl GeodesicEuler
impl GeodesicEuler
Sourcepub fn step<M, D, G>(
&self,
sde: &ManifoldSDE<M, D, G>,
x: &M::Point,
t: f64,
dt: f64,
inc: &Increment<f64>,
) -> M::Point
pub fn step<M, D, G>( &self, sde: &ManifoldSDE<M, D, G>, x: &M::Point, t: f64, dt: f64, inc: &Increment<f64>, ) -> M::Point
Advance x by one step of geodesic Euler-Maruyama.
Computes the tangent displacement f(x,t)*dt + g(x,t)*dW and maps it back to the manifold via Exp_x. Since all v0.1 cartan manifolds are complete, Exp is total and always succeeds.
Trait Implementations§
Source§impl<M, D, G> GeoScheme<M, D, G> for GeodesicEuler
impl<M, D, G> GeoScheme<M, D, G> for GeodesicEuler
Auto Trait Implementations§
impl Freeze for GeodesicEuler
impl RefUnwindSafe for GeodesicEuler
impl Send for GeodesicEuler
impl Sync for GeodesicEuler
impl Unpin for GeodesicEuler
impl UnsafeUnpin for GeodesicEuler
impl UnwindSafe for GeodesicEuler
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.