1 #ifndef STAN_MATH_OPENCL_IDENTITY_HPP 2 #define STAN_MATH_OPENCL_IDENTITY_HPP 28 }
catch (
const cl::Error&
e) {
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
const kernel_cl< out_buffer, int, int > identity("identity", {indexing_helpers, identity_kernel_code})
See the docs for identity() .
double e()
Return the base of the natural logarithm.
matrix_cl identity(int rows_cols)
Returns the identity matrix stored 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.