Skip to content

Better usability for parallel random #16

Open
@ochafik

Description

@ochafik

From @kozlov-p-v on December 13, 2012 19:7

Now, the ParallelRandom class http://nativelibs4java.sourceforge.net/javacl/api/stable/com/nativelibs4java/opencl/util/ParallelRandom.html have only few methods. And all of them can only return pointers of Integer which distrubute on [-Integer.MAX_VALUE,Integer.MAX_VALUE]
It is not really comfortable to work with it.

It will be very useful to have methods which create vectors, uniformly distributed on [0,1) or oven on [left,right] - something like createRandomDoubles(int size, double left, double right).

It is just a syntactic sugar for exising operations.

Copied from original issue: nativelibs4java/nativelibs4java#347

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions