1#ifndef STAN_MATH_OPENCL_REV_COLUMNS_DOT_SELF_HPP
2#define STAN_MATH_OPENCL_REV_COLUMNS_DOT_SELF_HPP
21 require_all_kernel_expressions_and_none_scalar_t<T>* =
nullptr>
31 += elt_multiply(colwise_broadcast(res.adj() * 2.0), value_of(v));
Represents an arithmetic matrix on the OpenCL device.
auto constant(const T a, int rows, int cols)
Matrix of repeated values in kernel generator expressions.
bool size_zero(const T &x)
Returns 1 if input is of length 0, returns 0 otherwise.
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
auto columns_dot_self(const T &a)
Returns the dot product of each column of a matrix with itself.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...