pub struct Synthetic<F, G> { /* private fields */ }Expand description
A linear combination of free generators and concrete points.
Free terms are indexed by u32 and bound later via Self::eval.
Concrete terms carry their point directly.
Implementations§
Source§impl<F, G> Synthetic<F, G>
impl<F, G> Synthetic<F, G>
Sourcepub fn concrete(weighted_points: impl IntoIterator<Item = (F, G)>) -> Self
pub fn concrete(weighted_points: impl IntoIterator<Item = (F, G)>) -> Self
Construct from known weighted points.
Sourcepub fn max_free_index(&self) -> Option<u32>
pub fn max_free_index(&self) -> Option<u32>
The maximum free generator index, or None if there are no free terms.
Sourcepub fn generators() -> impl Iterator<Item = Self>where
F: Ring,
pub fn generators() -> impl Iterator<Item = Self>where
F: Ring,
Yield symbolic generators G_0, G_1, G_2, ... with unit weight.
Sourcepub fn generators_array<const N: usize>() -> [Self; N]where
F: Ring,
pub fn generators_array<const N: usize>() -> [Self; N]where
F: Ring,
Return [G_0, G_1, ..., G_{N-1}] as symbolic generators with unit weight.
Trait Implementations§
Source§impl<'a, F: Additive, G: Space<F>> AddAssign<&'a Synthetic<F, G>> for Synthetic<F, G>
impl<'a, F: Additive, G: Space<F>> AddAssign<&'a Synthetic<F, G>> for Synthetic<F, G>
Source§fn add_assign(&mut self, rhs: &'a Self)
fn add_assign(&mut self, rhs: &'a Self)
Performs the
+= operation. Read moreSource§impl<'a, F: Space<F>, G: Space<F>> MulAssign<&'a F> for Synthetic<F, G>
impl<'a, F: Space<F>, G: Space<F>> MulAssign<&'a F> for Synthetic<F, G>
Source§fn mul_assign(&mut self, rhs: &'a F)
fn mul_assign(&mut self, rhs: &'a F)
Performs the
*= operation. Read moreSource§impl<'a, F: Additive, G: Space<F>> SubAssign<&'a Synthetic<F, G>> for Synthetic<F, G>
impl<'a, F: Additive, G: Space<F>> SubAssign<&'a Synthetic<F, G>> for Synthetic<F, G>
Source§fn sub_assign(&mut self, rhs: &'a Self)
fn sub_assign(&mut self, rhs: &'a Self)
Performs the
-= operation. Read moreimpl<F: Additive, G: Space<F>> Eq for Synthetic<F, G>
impl<F: Additive, G: Space<F>> Object for Synthetic<F, G>
Auto Trait Implementations§
impl<F, G> Freeze for Synthetic<F, G>
impl<F, G> RefUnwindSafe for Synthetic<F, G>where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<F, G> Send for Synthetic<F, G>
impl<F, G> Sync for Synthetic<F, G>
impl<F, G> Unpin for Synthetic<F, G>
impl<F, G> UnsafeUnpin for Synthetic<F, G>
impl<F, G> UnwindSafe for Synthetic<F, G>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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