1#ifndef STAN_MATH_OPENCL_PRIM_NUM_ELEMENTS_HPP
2#define STAN_MATH_OPENCL_PRIM_NUM_ELEMENTS_HPP
19 require_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr>
int64_t size(const T &m)
Returns the size (number of the elements) of a matrix_cl or var_value<matrix_cl<T>>.
int64_t num_elements(const T &m)
Returns the 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 ...