[][src]Struct auto_diff::rand::RNG

pub struct RNG { /* fields omitted */ }

Methods

impl RNG[src]

pub fn new() -> RNG[src]

pub fn set_seed(&mut self, seed: u64)[src]

pub fn bernoulli()[src]

pub fn cauchy()[src]

pub fn exponential()[src]

pub fn geometric()[src]

pub fn log_normal()[src]

pub fn normal(&mut self, dim: &[usize], mean: f32, std: f32) -> Tensor[src]

pub fn uniform<F>(dim: &[usize], from: F, to: F) -> Tensor where
    F: Float
[src]

pub fn normal_(&mut self, o: &Tensor, mean: f32, std: f32)[src]

pub fn uniform_(&mut self, o: &Tensor, from: f32, to: f32)[src]

Auto Trait Implementations

impl RefUnwindSafe for RNG

impl Send for RNG

impl Sync for RNG

impl Unpin for RNG

impl UnwindSafe for RNG

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,