1#ifndef STAN_MATH_PRIM_FUN_NUM_ELEMENTS_HPP
2#define STAN_MATH_PRIM_FUN_NUM_ELEMENTS_HPP
19template <
typename T, require_stan_scalar_t<T>* =
nullptr>
32template <
typename T, require_matrix_t<T>* =
nullptr>
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 ...