1#ifndef STAN_MATH_OPENCL_PRIM_SIZE_HPP
2#define STAN_MATH_OPENCL_PRIM_SIZE_HPP
18 require_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr>
20 return m.rows() * m.cols();
int64_t size(const T &m)
Returns the size (number of the elements) of a matrix_cl or var_value<matrix_cl<T>>.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...