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