#[repr(transparent)]pub struct Scale<T> { /* private fields */ }
Expand description
Scale transformation.
Implementations
Trait Implementations
sourceimpl<T> AbsDiffEq<Scale<T>> for Scale<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
impl<T> AbsDiffEq<Scale<T>> for Scale<T> where
T: AbsDiffEq<Epsilon = T> + Copy,
type Epsilon = T
type Epsilon = T
Used for specifying relative comparisons.
sourcefn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
sourcefn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more
sourcefn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of AbsDiffEq::abs_diff_eq
.
sourceimpl<T, const N: usize> Directional<Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Directional<Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
sourceimpl<T> Distribution<Scale<T>> for Normal where
Normal: Distribution<T>,
impl<T> Distribution<Scale<T>> for Normal where
Normal: Distribution<T>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Scale<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Scale<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T, const N: usize> Reorder<Scale<T>, Vector<T, N>> for Shift<T, N> where
Scale<T>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Scale<T>, Vector<T, N>> for Shift<T, N> where
Scale<T>: Transform<Vector<T, N>> + Copy,
Self: Transform<Vector<T, N>>,
sourceimpl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
impl<T, const N: usize> Reorder<Shift<T, N>, Vector<T, N>> for Scale<T> where
Self: Transform<Vector<T, N>>,
Shift<T, N>: Transform<Vector<T, N>>,
sourceimpl<T, const N: usize> Transform<Vector<T, N>> for Scale<T> where
T: Num + Inv<Output = T> + Copy,
impl<T, const N: usize> Transform<Vector<T, N>> for Scale<T> where
T: Num + Inv<Output = T> + Copy,
impl<T: Copy> Copy for Scale<T>
impl<T> StructuralPartialEq for Scale<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Scale<T> where
T: RefUnwindSafe,
impl<T> Send for Scale<T> where
T: Send,
impl<T> Sync for Scale<T> where
T: Sync,
impl<T> Unpin for Scale<T> where
T: Unpin,
impl<T> UnwindSafe for Scale<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more