rnormgpu: rnormgpu

Description Usage Arguments Value See Also Examples

View source: R/random_number_genertor.R

Description

This function generates normally distributed random numbers by using CUDA curand function CURAND_RNG_PSEUDO_DEFAULT and curandGenerateNormalDouble

Usage

1
rnormgpu(n, mean = 0, sd = 1, seed = 1)

Arguments

n

number of random numbers

mean

mean of normal distribution; default value 0

sd

standard deviation of normal distribution; default value 1

seed

random number generator seed; default value 1

Value

generated random numbers vector, a list consisting of

See Also

rlognormgpu

Examples

1
2
a_gpu <- rnormgpu(100, 0, 1, 15)
gathergpu(a_gpu)

yuanli22/RCUDA documentation built on May 4, 2019, 6:35 p.m.