[][src]Struct cuda::rand::CurandGenerator

pub struct CurandGenerator<RngType> { /* fields omitted */ }

Methods

impl<RngType: CurandPseudoRngType> CurandGenerator<RngType>[src]

pub fn set_seed_from_u64(&mut self, seed: u64) -> CurandResult[src]

pub fn set_pseudorandom_ordering(
    &mut self,
    ordering: CurandRngOrdering
) -> CurandResult
[src]

impl<RngType: CurandQuasiRngType> CurandGenerator<RngType>[src]

pub fn set_quasirandom_num_dims(&mut self, num_dims: u32) -> CurandResult[src]

pub fn set_quasirandom_ordering(
    &mut self,
    ordering: CurandQrngOrdering
) -> CurandResult
[src]

impl<RngType: CurandRngType> CurandGenerator<RngType>[src]

pub fn create() -> CurandResult<CurandGenerator<RngType>>[src]

pub unsafe fn set_cuda_stream_raw(
    &mut self,
    stream: cudaStream_t
) -> CurandResult
[src]

pub fn set_cuda_stream(&mut self, stream: &mut CudaStream) -> CurandResult[src]

pub fn set_offset(&mut self, offset: u64) -> CurandResult[src]

pub fn reset_state(&mut self) -> CurandResult[src]

pub unsafe fn gen_u32(&mut self, output: *mut u32, count: usize) -> CurandResult[src]

pub unsafe fn gen_u64(&mut self, output: *mut u64, count: usize) -> CurandResult[src]

pub unsafe fn gen_uniform_f32(
    &mut self,
    output: *mut f32,
    count: usize
) -> CurandResult
[src]

pub unsafe fn gen_uniform_f64(
    &mut self,
    output: *mut f64,
    count: usize
) -> CurandResult
[src]

pub unsafe fn gen_normal_f32(
    &mut self,
    output: *mut f32,
    count: usize,
    mean: f32,
    stddev: f32
) -> CurandResult
[src]

pub unsafe fn gen_normal_f64(
    &mut self,
    output: *mut f64,
    count: usize,
    mean: f64,
    stddev: f64
) -> CurandResult
[src]

pub unsafe fn gen_log_normal_f32(
    &mut self,
    output: *mut f32,
    count: usize,
    mean: f32,
    stddev: f32
) -> CurandResult
[src]

pub unsafe fn gen_log_normal_f64(
    &mut self,
    output: *mut f64,
    count: usize,
    mean: f64,
    stddev: f64
) -> CurandResult
[src]

Trait Implementations

impl<RngType> Drop for CurandGenerator<RngType>[src]

Auto Trait Implementations

impl<RngType> !Send for CurandGenerator<RngType>

impl<RngType> !Sync for CurandGenerator<RngType>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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