pub struct CwiseMatDistribution<Rows: Shape, Cols: Shape, D> {
pub nrows: Rows,
pub ncols: Cols,
pub dist: D,
}Fields§
§nrows: Rows§ncols: Cols§dist: DTrait Implementations§
Source§impl<Rows: Clone + Shape, Cols: Clone + Shape, D: Clone> Clone for CwiseMatDistribution<Rows, Cols, D>
impl<Rows: Clone + Shape, Cols: Clone + Shape, D: Clone> Clone for CwiseMatDistribution<Rows, Cols, D>
Source§fn clone(&self) -> CwiseMatDistribution<Rows, Cols, D>
fn clone(&self) -> CwiseMatDistribution<Rows, Cols, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Rows: Debug + Shape, Cols: Debug + Shape, D: Debug> Debug for CwiseMatDistribution<Rows, Cols, D>
impl<Rows: Debug + Shape, Cols: Debug + Shape, D: Debug> Debug for CwiseMatDistribution<Rows, Cols, D>
Source§impl<T, Rows: Shape, Cols: Shape, D: Distribution<T>> Distribution<Mat<Own<T, Rows, Cols>>> for CwiseMatDistribution<Rows, Cols, D>
impl<T, Rows: Shape, Cols: Shape, D: Distribution<T>> Distribution<Mat<Own<T, Rows, Cols>>> for CwiseMatDistribution<Rows, Cols, D>
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Mat<T, Rows, Cols>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Mat<T, Rows, Cols>
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreimpl<Rows: Copy + Shape, Cols: Copy + Shape, D: Copy> Copy for CwiseMatDistribution<Rows, Cols, D>
Auto Trait Implementations§
impl<Rows, Cols, D> Freeze for CwiseMatDistribution<Rows, Cols, D>
impl<Rows, Cols, D> RefUnwindSafe for CwiseMatDistribution<Rows, Cols, D>
impl<Rows, Cols, D> Send for CwiseMatDistribution<Rows, Cols, D>where
D: Send,
impl<Rows, Cols, D> Sync for CwiseMatDistribution<Rows, Cols, D>where
D: Sync,
impl<Rows, Cols, D> Unpin for CwiseMatDistribution<Rows, Cols, D>
impl<Rows, Cols, D> UnwindSafe for CwiseMatDistribution<Rows, Cols, D>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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