1 #ifndef STAN_MATH_PRIM_MAT_FUN_INITIALIZE_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_INITIALIZE_HPP
5 #include <boost/type_traits/is_arithmetic.hpp>
6 #include <boost/utility/enable_if.hpp>
19 template <
typename T,
typename V>
21 typename boost::enable_if_c<boost::is_arithmetic<V>::value,
void>::type
25 template <
typename T,
int R,
int C,
typename V>
26 inline void initialize(Eigen::Matrix<T, R, C>& x,
const V& v) {
27 for (
int i = 0; i < x.size(); ++i)
30 template <
typename T,
typename V>
32 for (
size_t i = 0; i < x.size(); ++i)
void initialize(T &x, const T &v)