[−][src]Struct cuda::rand::CurandGenerator
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]
&mut self,
ordering: CurandRngOrdering
) -> CurandResult
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]
&mut self,
ordering: CurandQrngOrdering
) -> CurandResult
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]
&mut self,
stream: cudaStream_t
) -> CurandResult
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]
&mut self,
output: *mut f32,
count: usize
) -> CurandResult
pub unsafe fn gen_uniform_f64(
&mut self,
output: *mut f64,
count: usize
) -> CurandResult
[src]
&mut self,
output: *mut f64,
count: usize
) -> CurandResult
pub unsafe fn gen_normal_f32(
&mut self,
output: *mut f32,
count: usize,
mean: f32,
stddev: f32
) -> CurandResult
[src]
&mut self,
output: *mut f32,
count: usize,
mean: f32,
stddev: f32
) -> CurandResult
pub unsafe fn gen_normal_f64(
&mut self,
output: *mut f64,
count: usize,
mean: f64,
stddev: f64
) -> CurandResult
[src]
&mut self,
output: *mut f64,
count: usize,
mean: f64,
stddev: f64
) -> CurandResult
pub unsafe fn gen_log_normal_f32(
&mut self,
output: *mut f32,
count: usize,
mean: f32,
stddev: f32
) -> CurandResult
[src]
&mut self,
output: *mut f32,
count: usize,
mean: f32,
stddev: f32
) -> CurandResult
pub unsafe fn gen_log_normal_f64(
&mut self,
output: *mut f64,
count: usize,
mean: f64,
stddev: f64
) -> CurandResult
[src]
&mut self,
output: *mut f64,
count: usize,
mean: f64,
stddev: f64
) -> CurandResult
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]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,