1 #ifndef STAN_MATH_PRIM_MAT_FUN_FILL_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_FILL_HPP
21 template <
typename T,
typename S>
22 void fill(T& x,
const S& y) {
38 template <
typename T,
int R,
int C,
typename S>
39 void fill(Eigen::Matrix<T, R, C>& x,
const S& y) {
54 template <
typename T,
typename S>
55 void fill(std::vector<T>& x,
const S& y) {
56 for (
size_t i = 0; i < x.size(); ++i)
void fill(T &x, const S &y)
Fill the specified container with the specified value.