pub enum GeometryError {
DimensionMismatch {
context: &'static str,
expected: usize,
got: usize,
},
InvalidPoint(&'static str),
Singular(&'static str),
Unsupported(&'static str),
NonConvergence {
context: &'static str,
iterations: usize,
residual: f64,
tolerance: f64,
},
FrechetMeanNotGloballyCertified {
context: &'static str,
stationarity_residual: f64,
tolerance: f64,
support_radius: f64,
uniqueness_radius: f64,
},
}Variants§
DimensionMismatch
InvalidPoint(&'static str)
Singular(&'static str)
Unsupported(&'static str)
A manifold primitive has no implementation for this manifold and must not silently fall back to a wrong default (e.g. a curved-manifold VJP for which no closed form is wired up yet).
NonConvergence
An iterative geometry primitive exhausted or stalled without satisfying its analytic first-order certificate. The evidence is carried in the error so callers can distinguish non-convergence from invalid geometry and inspect the achieved residual rather than receiving a partial point.
FrechetMeanNotGloballyCertified
A Karcher solve reached first-order stationarity on a positively curved manifold, but the weighted support does not fit inside the analytic strongly-convex ball that certifies this stationary point as the unique global Fréchet mean. Returning the local basin would make the chart origin depend on initialization; callers must instead provide an explicit base point or better-localized data.
Trait Implementations§
Source§impl Clone for GeometryError
impl Clone for GeometryError
Source§fn clone(&self) -> GeometryError
fn clone(&self) -> GeometryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeometryError
impl Debug for GeometryError
Source§impl Display for GeometryError
impl Display for GeometryError
Source§impl Error for GeometryError
impl Error for GeometryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<GeometryError> for ResponseGeometryError
impl From<GeometryError> for ResponseGeometryError
Source§fn from(error: GeometryError) -> Self
fn from(error: GeometryError) -> Self
Source§impl PartialEq for GeometryError
impl PartialEq for GeometryError
impl StructuralPartialEq for GeometryError
Auto Trait Implementations§
impl Freeze for GeometryError
impl RefUnwindSafe for GeometryError
impl Send for GeometryError
impl Sync for GeometryError
impl Unpin for GeometryError
impl UnsafeUnpin for GeometryError
impl UnwindSafe for GeometryError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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> ⓘ
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> ⓘ
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar 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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.