1#ifndef STAN_MATH_PRIM_FUN_GET_HPP
2#define STAN_MATH_PRIM_FUN_GET_HPP
22template <
typename T,
typename = require_stan_scalar_t<T>>
23inline T
get(
const T& x,
size_t n) {
35inline T
get(
const std::vector<T>& x,
size_t n) {
46template <
typename T,
typename = require_eigen_t<T>>
48 return m(
static_cast<int>(n));
T get(const T &x, size_t n)
Returns the provided element.
typename scalar_type< T >::type scalar_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...