1#ifndef STAN_MATH_OPENCL_KERNELS_DIVIDE_COLUMNS_HPP
2#define STAN_MATH_OPENCL_KERNELS_DIVIDE_COLUMNS_HPP
11namespace opencl_kernels {
13static constexpr const char *divide_columns_kernel_code =
STRINGIFY(
26 const int i = get_global_id(0);
27 A[i] /= vec[i % vec_size];
const kernel_cl< out_buffer, in_buffer, int > divide_columns_vec("divide_columns_vec", {indexing_helpers, divide_columns_kernel_code})
See the docs for divide_columns_vec() .
static const std::string indexing_helpers
Defines helper macros for common matrix indexing operations.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Creates functor for kernels.