Skip to main content

MyopicTorus

Struct MyopicTorus 

Source
pub struct MyopicTorus<I: ICompatible<V>, V: VCompatible<I>>(pub Torus<I, V>);
Expand description

A deliberately overlapping bounded domain on Torus.

This exercises NerveComplex when many cover nodes see the same region rather than forming the regular cover represented by TorusCover.

Tuple Fieldsยง

ยง0: Torus<I, V>

Implementationsยง

Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> MyopicTorus<I, V>

Source

pub fn s() -> usize

Returns the number of cover samples along each torus coordinate.

Trait Implementationsยง

Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> AsRef<MyopicTorus<I, V>> for MyopicTorusCover<I, V>

Sourceยง

fn as_ref(&self) -> &MyopicTorus<I, V>

Converts this type into a shared reference of the (usually inferred) input type.
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> AsRef<Torus<I, V>> for MyopicTorus<I, V>

Sourceยง

fn as_ref(&self) -> &Torus<I, V>

Converts this type into a shared reference of the (usually inferred) input type.
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> Bounded<MyopicTorus<I, V>, Torus<I, V>, V> for MyopicTorusCover<I, V>

Sourceยง

fn sdf(&self, v: &V) -> <V as Tensor>::F

Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> Bounded<Torus<I, V>, Torus<I, V>, V> for MyopicTorus<I, V>

Sourceยง

fn sdf(&self, v: &V) -> <V as Tensor>::F

Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> Chart<Torus<I, V>, V> for MyopicTorus<I, V>

Sourceยง

type Global = <Torus<I, V> as Chart<Torus<I, V>, V>>::Global

The result of mapping local coordinates back onto the manifold. Read more
Sourceยง

fn to_local(&self, p: &Torus<I, V>) -> Option<V>

Sourceยง

fn to_global(&self, c: V) -> Self::Global

Sourceยง

fn chart_at(p: &Torus<I, V>) -> Self

Sourceยง

fn local_distance(&self, other: &P) -> Option<<V::F as Field>::Fixed>
where V: Euclidean,

Calculates the distance between self and other in local coordinates, based at &self.
Sourceยง

fn check_local_inverse(p: &P) -> bool
where P: PartialEq,

Sourceยง

impl<I: Clone + ICompatible<V>, V: Clone + VCompatible<I>> Clone for MyopicTorus<I, V>

Sourceยง

fn clone(&self) -> MyopicTorus<I, V>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl<I: Debug + ICompatible<V>, V: Debug + VCompatible<I>> Debug for MyopicTorus<I, V>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> ExpMap<Torus<I, V>, V> for MyopicTorus<I, V>

Sourceยง

fn base_point(&self) -> Torus<I, V>

Sourceยง

fn check_base_point_is_origin(&self) -> bool
where V: Form,

Sourceยง

fn check_preservation_of_origin(&self) -> bool
where V: Form,

Sourceยง

fn check_chart_at_base_point(&self) -> bool
where V: Form,

If a chart centred at p exists, chart_at(p) returns it. Formally: chart_at(p).base_point() == p whenever p is the base point of some valid chart in this atlas. Read more
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> From<MyopicTorus<I, V>> for MyopicTorusCover<I, V>

Sourceยง

fn from(value: MyopicTorus<I, V>) -> Self

Converts to this type from the input type.
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> From<Torus<I, V>> for MyopicTorus<I, V>

Sourceยง

fn from(value: Torus<I, V>) -> Self

Converts to this type from the input type.
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> NerveComplexParameters<Torus<I, V>, V, MyopicTorus<I, V>, MyopicTorusCover<I, V>> for MyopicTorusCover<I, V>

Sourceยง

fn overestimation_bound() -> Option<(V::F, V::F)>

The one irreducible assumption: graph distance on the 1-skeleton overestimates true geodesic distance by at most a factor 1 + e. Read more
Sourceยง

fn max_candidate_paths() -> usize

Hard cap on how many candidate edge-paths are straightened. Raising it strengthens the guarantee; lowering it trades certification for speed.
Sourceยง

fn max_frontier() -> usize

Cap on heap entries. Prefixes vastly outnumber completions, and this is the quantity that threatens memory. Independent of the above: no ratio between prefixes-in-flight and completions exists.
Sourceยง

fn max_rescues() -> usize

Cap on local insertions before declaring the charts unusable. when flowing a polyline, sometimes a point might go out of the injectivity radius of its neighbors, in that case, we insert a point between them to try to rescue the polyline.
Sourceยง

fn max_straightening_iterations(n: usize) -> usize

Iteration cap for the flow, as a function of vertex count. Read more
Sourceยง

fn max_samples() -> usize

Cap on samples per same_basin comparison. Exceeding it means the polyline is longer than max_samples ยท ฮด_s, and no comparison at that spacing could prove two prefixes share a basin โ€” so the prune is declined rather than performed on insufficient evidence.
Sourceยง

fn max_canonical_generators() -> usize

Generator count above which fundamental_group returns a correct but non-canonical presentation. Read more
Sourceยง

fn prefix_smoothing_sweeps() -> usize

Sweeps of the discrete geodesic flow applied to a prefix before it is compared for basin membership. Read more
Sourceยง

fn max_basins_per_class() -> usize

Sourceยง

fn get_neighbors(i: usize) -> impl Iterator<Item = usize>

Returns the indices of nodes whose bounded domains overlap the bounded domain of this node โ€” the 1-skeleton of the nerve. Read more
Sourceยง

impl<I: ICompatible<V>, V: VCompatible<I>> TangentBundle<Torus<I, V>, V> for MyopicTorus<I, V>

Auto Trait Implementationsยง

ยง

impl<I, V> Freeze for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: Freeze,

ยง

impl<I, V> RefUnwindSafe for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: RefUnwindSafe,

ยง

impl<I, V> Send for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: Send,

ยง

impl<I, V> Sync for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: Sync,

ยง

impl<I, V> Unpin for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: Unpin,

ยง

impl<I, V> UnsafeUnpin for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: UnsafeUnpin,

ยง

impl<I, V> UnwindSafe for MyopicTorus<I, V>
where <V as Tensor>::F: Sized, BothSided: Sized, <I as Tensor>::F: Sized, Torus<I, V>: UnwindSafe,

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<๐’ž, X> Equivalent<๐’ž, X> for X
where ๐’ž: Cat,

Sourceยง

fn project(self) -> X

Sourceยง

fn lift(x: X) -> X

Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> OptionallyOption<T> for T

Sourceยง

fn into_option(self) -> Option<T>

Converts either permitted representation into Option<T>. Read more
Sourceยง

impl<T> Point for T
where T: Clone + Debug,

Sourceยง

impl<T> Reassociate for T

Sourceยง

fn reassociate<P>( self, ) -> <<Self as ReassociateKernel<P>>::Reassociated as NormalizeWith<Undecorated>>::Normalized
where Self: ReassociateKernel<P>, <Self as ReassociateKernel<P>>::Reassociated: NormalizeWith<Undecorated>,

Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.