1#ifndef STAN_MATH_OPENCL_REV_FUN_GRAD_HPP
2#define STAN_MATH_OPENCL_REV_FUN_GRAD_HPP
24 g = from_matrix_cl<Eigen::VectorXd>(x.adj());
Represents an arithmetic matrix on the OpenCL device.
static void grad()
Compute the gradient for all variables starting from the end of the AD tape.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...