1 #ifndef STAN_MATH_OPENCL_ERR_CHECK_NAN_HPP 2 #define STAN_MATH_OPENCL_ERR_CHECK_NAN_HPP 24 inline void check_nan(
const char*
function,
const char* name,
34 nan_flag = from_matrix_cl<int>(nan_chk);
38 }
catch (
const cl::Error&
e) {
The matrix_cl class - allocates memory space on the OpenCL device, functions for transfering matrices...
const kernel_cl< in_buffer, out_buffer, int, int > check_nan("is_nan", {indexing_helpers, is_nan_kernel_code})
See the docs for is_nan() .
Represents a matrix on the OpenCL device.
void domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
double e()
Return the base of the natural logarithm.
matrix_cl to_matrix_cl(const Eigen::Matrix< double, R, C > &src)
Copies the source Eigen matrix to the destination matrix that is 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.
void check_nan(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl has NaN values.