1 #ifndef STAN_MATH_OPENCL_COPY_TRIANGULAR_HPP 2 #define STAN_MATH_OPENCL_COPY_TRIANGULAR_HPP 29 template <TriangularViewCL triangular_view = TriangularViewCL::Entire>
31 if (src.
size() == 0 || src.
size() == 1) {
38 src, dst.
rows(), dst.cols(),
40 }
catch (
const cl::Error&
e) {
The matrix_cl class - allocates memory space on the OpenCL device, functions for transfering matrices...
matrix_cl copy_triangular(const matrix_cl &src)
Copies the lower or upper triangular of the source matrix to the destination matrix.
const kernel_cl< out_buffer, in_buffer, int, int, TriangularViewCL > copy_triangular("copy_triangular", {indexing_helpers, copy_triangular_kernel_code})
See the docs for copy_triangular() .
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.