Skip to content
This repository was archived by the owner on Feb 28, 2020. It is now read-only.

ustcfdm/matlab_random_gpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Poisson random numbers with GPU. Note: When you use current time as seed, if the function is called twice within the same second, they will generate same random numbers.

Examples of usage:

%-----------------------------------------
% Same lambda
%-----------------------------------------
lambda = 30;
sz = [1000 1000 10];
% use current time as seed
r1 = MgPoissrndGpu(lambda, sz);
% specify seed
seed = 1;
r2 = MgPoissrndGpu(lambda, sz, seed);

%-----------------------------------------
% Various lambda
%-----------------------------------------
lambda = magic(1000);
% use corrent time as seed
r3 = MgPoissrndGpu(lambda);
% specify seed
r4 = MgPoissrndGpu(lambda, seed);

About

This repository have been merged into mango_matlab (https://github.com/ustcfdm/mango_matlab)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors