1 #ifndef STAN_MATH_OPENCL_ADD_HPP 2 #define STAN_MATH_OPENCL_ADD_HPP 33 }
catch (
const cl::Error&
e) {
const kernel_cl< out_buffer, in_buffer, in_buffer, int, int > add("add", {indexing_helpers, add_kernel_code})
See the docs for add() .
The matrix_cl class - allocates memory space on the OpenCL device, functions for transfering matrices...
void check_matching_dims(const char *function, const char *name1, const matrix_cl &y1, const char *name2, const matrix_cl &y2)
Check if two matrix_cls have the same dimensions.
Represents a matrix on the OpenCL device.
fvar< T > operator+(const fvar< T > &x1, const fvar< T > &x2)
Return the sum of the specified forward mode addends.
double e()
Return the base of the natural logarithm.
matrix_cl add(const matrix_cl &A, const matrix_cl &B)
Matrix addition on the OpenCL device.
void check_opencl_error(const char *function, const cl::Error &e)
Throws the domain error with specifying the OpenCL error that occured.