1 #ifndef STAN_MATH_OPENCL_KERNELS_SCALAR_MUL_DIAGONAL_HPP 2 #define STAN_MATH_OPENCL_KERNELS_SCALAR_MUL_DIAGONAL_HPP 10 namespace opencl_kernels {
12 static const char *scalar_mul_diagonal_kernel_code =
STRINGIFY(
23 const unsigned int rows,
24 const unsigned int min_dim) {
25 int i = get_global_id(0);
int rows(const Eigen::Matrix< T, R, C > &m)
Return the number of rows in the specified matrix, vector, or row vector.
const kernel_cl< in_out_buffer, double, int, int > scalar_mul_diagonal("scalar_mul_diagonal", {indexing_helpers, scalar_mul_diagonal_kernel_code})
See the docs for add() .
static const char * indexing_helpers
Creates functor for kernels.