Struct zenu_matrix::constructor::rand::UniformBuilder
source · pub struct UniformBuilder<T, D> { /* private fields */ }
Expand description
A builder for creating matrices filled with random values from a uniform distribution.
Implementations§
source§impl<T, D> UniformBuilder<T, D>
impl<T, D> UniformBuilder<T, D>
sourcepub fn from_matrix<M: MatrixBase<Dim = D>>(self, a: &M) -> Self
pub fn from_matrix<M: MatrixBase<Dim = D>>(self, a: &M) -> Self
Sets the shape of the matrix to be the same as another matrix.
Trait Implementations§
source§impl<T: Clone, D: Clone> Clone for UniformBuilder<T, D>
impl<T: Clone, D: Clone> Clone for UniformBuilder<T, D>
source§fn clone(&self) -> UniformBuilder<T, D>
fn clone(&self) -> UniformBuilder<T, D>
Returns a copy 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 moreAuto Trait Implementations§
impl<T, D> Freeze for UniformBuilder<T, D>
impl<T, D> RefUnwindSafe for UniformBuilder<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for UniformBuilder<T, D>
impl<T, D> Sync for UniformBuilder<T, D>
impl<T, D> Unpin for UniformBuilder<T, D>
impl<T, D> UnwindSafe for UniformBuilder<T, D>where
D: UnwindSafe,
T: UnwindSafe,
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