GPULib API

Tech-X Corporation

single page | use frames     summary     class     fields     routine details     file attributes

lib/

gpurandomu.pro


Routines

result = gpuRandomu(seed, nx [, ny] [, LHS=GPUVariable object] [, ERROR=integer] [, NORMAL=bool])

This routine generates uniformly distributed random numbers on the GPU

gpuRandomu, seed, nx [, p2], p3 [, ERROR=integer] [, NORMAL=bool]

This routine generates uniformly distributed random numbers on the GPU

Routine details

top gpuRandomu

result = gpuRandomu(seed, nx [, ny] [, LHS=GPUVariable object] [, ERROR=integer] [, NORMAL=bool])

This routine generates uniformly distributed random numbers on the GPU

Return value

GPUVariable object

Parameters

seed in required type=int

seed for RNG. Can be undefined

nx in required type=int

x-dimension of resulting random array

ny out optional type=int

y-dimension of resulting random array

Keywords

LHS in optional type=GPUVariable object

pass GPU variable to use as return value

ERROR out optional type=integer

error status

NORMAL in optional type=bool

generate a normal distribution, rather than a uniform one

top gpuRandomu

gpuRandomu, seed, nx [, p2], p3 [, ERROR=integer] [, NORMAL=bool]

This routine generates uniformly distributed random numbers on the GPU

Parameters

seed in required type=int

seed for RNG. Can be undefined

nx in required type=int

x-dimension of resulting random array

p2 out optional type=int

y-dimension of resulting random array

p3 in required type=GPUVariable object

variable to store random numbers in

Keywords

ERROR out optional type=integer

error status

NORMAL in optional type=bool

generate a normal distribution, rather than a uniform one

File attributes

Modification date: Fri Nov 12 11:07:43 2010
Lines: 156
Docformat: rst rst