1 #ifndef STAN_MATH_OPENCL_ERR_CHECK_SYMMETRIC_HPP 2 #define STAN_MATH_OPENCL_ERR_CHECK_SYMMETRIC_HPP 30 int symmetric_flag = 1;
36 symmetric_flag = from_matrix_cl<int>(symm_flag);
37 if (!symmetric_flag) {
40 }
catch (
const cl::Error&
e) {
void check_square(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl is square.
The matrix_cl class - allocates memory space on the OpenCL device, functions for transfering matrices...
const double CONSTRAINT_TOLERANCE
The tolerance for checking arithmetic bounds In rank and in simplexes.
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.
const kernel_cl< in_buffer, out_buffer, int, int, const double > check_symmetric("is_symmetric", {indexing_helpers, is_symmetric_kernel_code})
See the docs for check_symmetric() .
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_symmetric(const char *function, const char *name, const matrix_cl &y)
Check if the matrix_cl is symmetric.