1#ifndef STAN_MATH_OPENCL_PRIM_ROWS_DOT_SELF_HPP 
    2#define STAN_MATH_OPENCL_PRIM_ROWS_DOT_SELF_HPP 
   21template <
typename T_a,
 
   22          require_all_kernel_expressions_and_none_scalar_t<T_a>* = 
nullptr>
 
auto rowwise_sum(T &&a)
Rowwise sum reduction of a kernel generator expression.
 
auto rows_dot_self(T_a &&a)
Returns the dot product of each row of a matrix with itself.
 
fvar< T > square(const fvar< T > &x)
 
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...