pub struct GaussianMatrixGenerator;Expand description
Generates matrices with independent and identically distributed Gaussian entries.
Each entry is drawn from N(mean, stddev^2) using the Box-Muller transform applied to a SplitMix64 PRNG.
Implementations§
Source§impl GaussianMatrixGenerator
impl GaussianMatrixGenerator
Sourcepub fn generate(
rows: usize,
cols: usize,
mean: f64,
stddev: f64,
seed: u64,
) -> RandomMatrix
pub fn generate( rows: usize, cols: usize, mean: f64, stddev: f64, seed: u64, ) -> RandomMatrix
Generates an rows x cols matrix with i.i.d. Gaussian entries.
§Arguments
rows- Number of rowscols- Number of columnsmean- Mean of the Gaussian distributionstddev- Standard deviation of the Gaussian distributionseed- Random seed
Auto Trait Implementations§
impl Freeze for GaussianMatrixGenerator
impl RefUnwindSafe for GaussianMatrixGenerator
impl Send for GaussianMatrixGenerator
impl Sync for GaussianMatrixGenerator
impl Unpin for GaussianMatrixGenerator
impl UnsafeUnpin for GaussianMatrixGenerator
impl UnwindSafe for GaussianMatrixGenerator
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