1 #ifndef STAN_MATH_OPENCL_DIAGONAL_MULTIPLY_HPP 2 #define STAN_MATH_OPENCL_DIAGONAL_MULTIPLY_HPP 24 int min_dim = B.
rows();
25 if (B.
cols() < min_dim)
30 }
catch (
const cl::Error&
e) {
const kernel_cl< in_out_buffer, double, int, int > scalar_mul_diagonal("scalar_mul_diagonal", {indexing_helpers, scalar_mul_diagonal_kernel_code})
See the docs for add() .
The matrix_cl class - allocates memory space on the OpenCL device, functions for transfering matrices...
Represents a matrix on the OpenCL device.
checking OpenCL error numbers
double e()
Return the base of the natural logarithm.
void check_opencl_error(const char *function, const cl::Error &e)
Throws the domain error with specifying the OpenCL error that occured.
matrix_cl diagonal_multiply(const matrix_cl &A, const double scalar)
Multiplies the diagonal of a matrix on the OpenCL device with the specified scalar.