CUDA Networks
|
Implementation of the Matrix::add_vector method for GPU-accelerated addition of a vector to each column of a matrix. More...
#include "matrix.h"
#include "vector.h"
#include <cuda_runtime.h>
#include <stdexcept>
#include <string>
Go to the source code of this file.
Functions | |
__global__ void | addVectorToMatrixKernel (double *m, const double *v, int rows, int cols) |
CUDA kernel for adding a vector to each column of a matrix. More... | |
Implementation of the Matrix::add_vector method for GPU-accelerated addition of a vector to each column of a matrix.
Definition in file matrix_add_vector.cu.
__global__ void addVectorToMatrixKernel | ( | double * | m, |
const double * | v, | ||
int | rows, | ||
int | cols | ||
) |
CUDA kernel for adding a vector to each column of a matrix.
m | Pointer to the matrix data. |
v | Pointer to the vector data. |
rows | Number of rows in the matrix. |
cols | Number of columns in the matrix. |
Definition at line 19 of file matrix_add_vector.cu.