pub struct SeededRand<Dist, T, R>where
Self: Computation,{
pub distribution: Dist,
pub rng: R,
/* private fields */
}
Fields§
§distribution: Dist
§rng: R
Implementations§
Source§impl<Dist, T, R> SeededRand<Dist, T, R>where
Self: Computation,
impl<Dist, T, R> SeededRand<Dist, T, R>where
Self: Computation,
Trait Implementations§
Source§impl<Rhs, Dist, T, R> Add<Rhs> for SeededRand<Dist, T, R>
impl<Rhs, Dist, T, R> Add<Rhs> for SeededRand<Dist, T, R>
Source§impl<Dist: Clone, T: Clone, R: Clone> Clone for SeededRand<Dist, T, R>where
Self: Computation,
impl<Dist: Clone, T: Clone, R: Clone> Clone for SeededRand<Dist, T, R>where
Self: Computation,
Source§fn clone(&self) -> SeededRand<Dist, T, R>
fn clone(&self) -> SeededRand<Dist, T, R>
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<Dist, T, R> Computation for SeededRand<Dist, T, R>where
Dist: Computation,
R: Computation,
impl<Dist, T, R> Computation for SeededRand<Dist, T, R>where
Dist: Computation,
R: Computation,
type Dim = (<Dist as Computation>::Dim, Zero)
type Item = (T, <R as Computation>::Item)
fn add<Rhs>(self, rhs: Rhs) -> Add<Self, Rhs>
fn sub<Rhs>(self, rhs: Rhs) -> Sub<Self, Rhs>
fn mul<Rhs>(self, rhs: Rhs) -> Mul<Self, Rhs>
fn div<Rhs>(self, rhs: Rhs) -> Div<Self, Rhs>
fn pow<Rhs>(self, rhs: Rhs) -> Pow<Self, Rhs>
fn neg(self) -> Neg<Self>
fn abs(self) -> Abs<Self>
fn sin(self) -> Sin<Self>
fn cos(self) -> Cos<Self>
fn tan(self) -> Tan<Self>
fn asin(self) -> Asin<Self>
fn acos(self) -> Acos<Self>
fn atan(self) -> Atan<Self>
fn eq<Rhs>(self, rhs: Rhs) -> Eq<Self, Rhs>
fn ne<Rhs>(self, rhs: Rhs) -> Ne<Self, Rhs>
fn lt<Rhs>(self, rhs: Rhs) -> Lt<Self, Rhs>
fn le<Rhs>(self, rhs: Rhs) -> Le<Self, Rhs>
fn gt<Rhs>(self, rhs: Rhs) -> Gt<Self, Rhs>
fn ge<Rhs>(self, rhs: Rhs) -> Ge<Self, Rhs>
fn enumerate<F>(self, f: Function<(Name, Name), F>) -> Enumerate<Self, F>
fn zip<Rhs>(self, rhs: Rhs) -> Zip<Self, Rhs>
fn fst(self) -> Fst<Self>
fn snd(self) -> Snd<Self>
Source§fn black_box<F, FDim, FItem>(self, f: F) -> BlackBox<Self, F, FDim, FItem>
fn black_box<F, FDim, FItem>(self, f: F) -> BlackBox<Self, F, FDim, FItem>
Run the given regular function
F
. Read morefn if_<ArgNames, P, FTrue, FFalse>( self, arg_names: ArgNames, predicate: P, f_true: FTrue, f_false: FFalse, ) -> If<Self, ArgNames, P, FTrue, FFalse>
fn loop_while<ArgNames, F, P>( self, arg_names: ArgNames, f: F, predicate: P, ) -> LoopWhile<Self, ArgNames, F, P>
fn then<ArgNames, F>(self, f: Function<ArgNames, F>) -> Then<Self, ArgNames, F>
Source§fn identity_matrix<T>(self) -> IdentityMatrix<Self, T>
fn identity_matrix<T>(self) -> IdentityMatrix<Self, T>
Source§fn scalar_product<Rhs>(self, rhs: Rhs) -> ScalarProduct<Self, Rhs>
fn scalar_product<Rhs>(self, rhs: Rhs) -> ScalarProduct<Self, Rhs>
Multiply and sum the elements of two vectors. Read more
Source§impl<Dist, T, R> ComputationFn for SeededRand<Dist, T, R>where
Self: Computation,
Dist: ComputationFn,
R: ComputationFn,
SeededRand<Dist::Filled, T, R::Filled>: Computation,
impl<Dist, T, R> ComputationFn for SeededRand<Dist, T, R>where
Self: Computation,
Dist: ComputationFn,
R: ComputationFn,
SeededRand<Dist::Filled, T, R::Filled>: Computation,
Source§impl<Dist: Debug, T: Debug, R: Debug> Debug for SeededRand<Dist, T, R>where
Self: Computation,
impl<Dist: Debug, T: Debug, R: Debug> Debug for SeededRand<Dist, T, R>where
Self: Computation,
Source§impl<Dist, T, R> Display for SeededRand<Dist, T, R>
impl<Dist, T, R> Display for SeededRand<Dist, T, R>
Source§impl<Rhs, Dist, T, R> Div<Rhs> for SeededRand<Dist, T, R>
impl<Rhs, Dist, T, R> Div<Rhs> for SeededRand<Dist, T, R>
Source§impl<Rhs, Dist, T, R> Mul<Rhs> for SeededRand<Dist, T, R>
impl<Rhs, Dist, T, R> Mul<Rhs> for SeededRand<Dist, T, R>
Source§impl<Dist, T, R> Neg for SeededRand<Dist, T, R>
impl<Dist, T, R> Neg for SeededRand<Dist, T, R>
Source§impl<Dist, DistOut, T, R> RunCore for SeededRand<Dist, T, R>where
Self: Computation,
Dist: Computation + RunCore<Output = DistOut>,
DistOut: BroadcastSeededRands<Dist::Dim, T>,
R: RunCore,
R::Output: Rng,
impl<Dist, DistOut, T, R> RunCore for SeededRand<Dist, T, R>where
Self: Computation,
Dist: Computation + RunCore<Output = DistOut>,
DistOut: BroadcastSeededRands<Dist::Dim, T>,
R: RunCore,
R::Output: Rng,
Source§impl<Rhs, Dist, T, R> Sub<Rhs> for SeededRand<Dist, T, R>
impl<Rhs, Dist, T, R> Sub<Rhs> for SeededRand<Dist, T, R>
impl<Dist: Copy, T: Copy, R: Copy> Copy for SeededRand<Dist, T, R>where
Self: Computation,
Auto Trait Implementations§
impl<Dist, T, R> Freeze for SeededRand<Dist, T, R>
impl<Dist, T, R> RefUnwindSafe for SeededRand<Dist, T, R>
impl<Dist, T, R> Send for SeededRand<Dist, T, R>
impl<Dist, T, R> Sync for SeededRand<Dist, T, R>
impl<Dist, T, R> Unpin for SeededRand<Dist, T, R>
impl<Dist, T, R> UnwindSafe for SeededRand<Dist, T, R>
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.