CUDA Networks
|
Implementation of the Vector::randomize method to fill the vector with random values. More...
Go to the source code of this file.
Functions | |
__global__ void | randomizeKernel (double *data, int rows, unsigned long seed) |
CUDA kernel function that fills each element in the vector with a random value between -0.5 and 0.5. More... | |
Implementation of the Vector::randomize method to fill the vector with random values.
Definition in file vector_randomize.cu.
__global__ void randomizeKernel | ( | double * | data, |
int | rows, | ||
unsigned long | seed | ||
) |
CUDA kernel function that fills each element in the vector with a random value between -0.5 and 0.5.
data | Pointer to the vector data on the GPU. |
rows | Number of elements in the vector. |
seed | Seed for random number generator. |
Definition at line 16 of file vector_randomize.cu.