fill.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_ARR_FUN_FILL_HPP
#define STAN_MATH_PRIM_ARR_FUN_FILL_HPP
#include <stan/math/prim/scal/fun/fill.hpp>
#include <vector>
namespace stan {
namespace math {
template <typename T, typename S>
void fill(std::vector<T>& x, const S& y) {
for (typename std::vector<T>::size_type i = 0; i < x.size(); ++i)
fill(x[i], y);
}
}
}
#endif
fill.hpp
stan
Definition: log_sum_exp.hpp:8
stan::math::size_type
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
Definition: typedefs.hpp:13
stan::math::fill
void fill(std::vector< T > &x, const S &y)
Fill the specified container with the specified value.
Definition: fill.hpp:22

[ Stan Home Page ] © 2011–2016, Stan Development Team.