Mon, 21 Oct 2024 08:44:23 -0500
Add a zero function on manifolds
use alg_tools::euclidean::Euclidean; /// A point on a manifold pub trait ManifoldPoint : Clone + PartialEq { // Type of tangent factors type Tangent : Euclidean<f64, Output=Self::Tangent> + std::fmt::Debug; /// Exponential map fn exp(&self, tangent : &Self::Tangent) -> Self; /// Logarithmic map fn log(&self, other : &Self) -> Self::Tangent; /// Distance to `other` fn dist_to(&self, other : &Self) -> f64; /// Return the zero tangent at `self`. fn tangent_origin(&self) -> Self::Tangent; }