1#ifndef STAN_MATH_OPENCL_PRIM_COLUMNS_DOT_SELF_HPP
2#define STAN_MATH_OPENCL_PRIM_COLUMNS_DOT_SELF_HPP
23 require_all_kernel_expressions_and_none_scalar_t<T>* =
nullptr>
29 while (res.rows() > 1) {
auto constant(const T a, int rows, int cols)
Matrix of repeated values in kernel generator expressions.
auto colwise_sum(T &&a)
Column wise sum - reduction of a kernel generator expression.
bool size_zero(const T &x)
Returns 1 if input is of length 0, returns 0 otherwise.
auto columns_dot_self(const T &a)
Returns the dot product of each column of a matrix with itself.
fvar< T > square(const fvar< T > &x)
typename plain_type< T >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...