pub struct UniformBuilder<T, S, D> { /* private fields */ }
Expand description
A builder for creating matrices filled with random values from a uniform distribution.
Implementations§
Source§impl<T, S, D> UniformBuilder<T, S, D>
impl<T, S, D> UniformBuilder<T, S, D>
Sourcepub fn from_matrx<R2: Repr<Item = T>>(self, a: &Matrix<R2, S, D>) -> Self
pub fn from_matrx<R2: Repr<Item = T>>(self, a: &Matrix<R2, S, D>) -> Self
Sets the shape of the matrix to be the same as another matrix.
Trait Implementations§
Source§impl<T: Clone, S: Clone, D: Clone> Clone for UniformBuilder<T, S, D>
impl<T: Clone, S: Clone, D: Clone> Clone for UniformBuilder<T, S, D>
Source§fn clone(&self) -> UniformBuilder<T, S, D>
fn clone(&self) -> UniformBuilder<T, S, 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 moreAuto Trait Implementations§
impl<T, S, D> Freeze for UniformBuilder<T, S, D>
impl<T, S, D> RefUnwindSafe for UniformBuilder<T, S, D>
impl<T, S, D> Send for UniformBuilder<T, S, D>
impl<T, S, D> Sync for UniformBuilder<T, S, D>
impl<T, S, D> Unpin for UniformBuilder<T, S, D>
impl<T, S, D> UnwindSafe for UniformBuilder<T, S, 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