CUDA Networks
|
Implementation of the Matrix::multiply_scalar method for GPU-accelerated multiplication of a matrix by a scalar. More...
#include "matrix.h"
#include <cuda_runtime.h>
#include <stdexcept>
#include <cfloat>
#include <cmath>
Go to the source code of this file.
Functions | |
__global__ void | multiplyScalarKernel (double *data, double scalar, int size) |
CUDA kernel for multiplying matrix elements by a scalar. More... | |
Implementation of the Matrix::multiply_scalar method for GPU-accelerated multiplication of a matrix by a scalar.
Definition in file matrix_multiply_scalar.cu.
__global__ void multiplyScalarKernel | ( | double * | data, |
double | scalar, | ||
int | size | ||
) |
CUDA kernel for multiplying matrix elements by a scalar.
data | Pointer to the matrix data. |
scalar | The scalar to multiply by. |
size | Total number of elements in the matrix. |
Definition at line 18 of file matrix_multiply_scalar.cu.