jeudi 28 juin 2018

How to create simple random array using CUDA xoroshiro128p

I need to get simple example for creating random array using CUDA xoroshiro128p. For example final array shell by size(2,4). Link for numba doc here

Pseudo code:

minimum = -2
maximum = 2

out_array = random(minimum, maximum, shape(2,4))

Output:
[[ 1.87569628  2.85881711  3.6009965   1.49224129]
 [-3.27321953  1.59090995 -4.66912864 -3.43071647]]




Aucun commentaire:

Enregistrer un commentaire