CUDA Networks
vector_initialize.cu
Go to the documentation of this file.
1 /**
2  * @file vector_initialize.cu
3  * @brief Implementation of the Vector::initialize method.
4  */
5 #include "vector.h"
6 #include <cuda_runtime.h>
7 
9  // Use cudaMemset to set all elements of d_data to 0
10  cudaMemset(d_data, 0, rows * sizeof(double));
11 }
void initialize()
Initialize the vector (typically sets all elements to zero)
Defines the Vector class for GPU-accelerated vector operations.