1 #ifndef STAN_MATH_OPENCL_SUBTRACT_HPP 2 #define STAN_MATH_OPENCL_SUBTRACT_HPP 37 }
catch (cl::Error&
e) {
auto subtract(const matrix_cl &A, const matrix_cl &B)
Matrix subtraction on the OpenCL device Subtracts the second matrix from the first matrix and stores ...
fvar< T > operator-(const fvar< T > &x1, const fvar< T > &x2)
Return the difference of the specified arguments.
const kernel_cl< out_buffer, in_buffer, in_buffer, int, int > subtract("subtract", {indexing_helpers, subtract_kernel_code})
See the docs for subtract() .
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.
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.