Struct vecmat::distr::Invertible
source · [−]pub struct Invertible;
Expand description
Distribution that guarantees to produce an element which could be inverted.
Trait Implementations
sourceimpl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Invertible where
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
impl<T, const N: usize> Distribution<Chain<Shift<T, N>, Linear<T, N>, Vector<T, N>>> for Invertible where
Invertible: Distribution<Linear<T, N>>,
Normal: Distribution<Shift<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Affine<T, N>
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> Distribution<Linear<T, N>> for Invertible where
Invertible: Distribution<Matrix<T, N, N>>,
impl<T, const N: usize> Distribution<Linear<T, N>> for Invertible where
Invertible: Distribution<Matrix<T, N, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Linear<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Linear<T, N>
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> Distribution<Matrix<T, N, N>> for Invertible where
Normal: Distribution<Matrix<T, N, N>>,
T: Neg<Output = T> + Num + NormL1 + Copy,
<T as NormL1>::Output: Epsilon,
impl<T, const N: usize> Distribution<Matrix<T, N, N>> for Invertible where
Normal: Distribution<Matrix<T, N, N>>,
T: Neg<Output = T> + Num + NormL1 + Copy,
<T as NormL1>::Output: Epsilon,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Matrix<T, N, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Matrix<T, N, N>
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: Neg<Output = T> + Num + Copy> Distribution<Moebius<T>> for Invertible where
Invertible: Distribution<Matrix<T, 2, 2>>,
impl<T: Neg<Output = T> + Num + Copy> Distribution<Moebius<T>> for Invertible where
Invertible: Distribution<Matrix<T, 2, 2>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Moebius<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Moebius<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
Auto Trait Implementations
impl RefUnwindSafe for Invertible
impl Send for Invertible
impl Sync for Invertible
impl Unpin for Invertible
impl UnwindSafe for Invertible
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