1#ifndef STAN_MATH_PRIM_FUN_INITIALIZE_HPP
2#define STAN_MATH_PRIM_FUN_INITIALIZE_HPP
15template <
typename T,
typename V, require_all_stan_scalar_t<T, V>* =
nullptr,
16 require_convertible_t<V, T>* =
nullptr>
21template <
typename T,
int R,
int C,
typename V>
22inline void initialize(Eigen::Matrix<T, R, C>& x,
const V& v) {
26template <
typename T,
typename V>
28 for (
size_t i = 0; i < x.size(); ++i) {
void initialize(T &x, V v)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...