1#ifndef STAN_MATH_PRIM_FUN_SIZE_HPP
2#define STAN_MATH_PRIM_FUN_SIZE_HPP
16template <
typename T, require_stan_scalar_t<T>* =
nullptr>
17inline size_t size(
const T& ) {
27template <
typename T, require_container_t<T>* =
nullptr>
28inline size_t size(
const T& m) {
32template <
typename T, require_var_matrix_t<T>* =
nullptr>
33inline size_t size(
const T& m) {
size_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 ...