CUDA Networks
|
Implementation of the Matrix::subtract method for GPU-accelerated matrix subtraction. More...
Go to the source code of this file.
Functions | |
__global__ void | matrixSubtractKernel (const double *a, const double *b, double *c, int rows, int cols) |
CUDA kernel for element-wise matrix subtraction. More... | |
Implementation of the Matrix::subtract method for GPU-accelerated matrix subtraction.
Definition in file matrix_subtract.cu.
__global__ void matrixSubtractKernel | ( | const double * | a, |
const double * | b, | ||
double * | c, | ||
int | rows, | ||
int | cols | ||
) |
CUDA kernel for element-wise matrix subtraction.
a | Pointer to the first input matrix data. |
b | Pointer to the second input matrix data. |
c | Pointer to the output matrix data. |
rows | Number of rows in the matrices. |
cols | Number of columns in the matrices. |
Definition at line 19 of file matrix_subtract.cu.