1#ifndef STAN_MATH_PRIM_FUN_FILL_HPP
2#define STAN_MATH_PRIM_FUN_FILL_HPP
22template <
typename EigMat,
typename S, require_eigen_t<EigMat>* =
nullptr,
23 require_stan_scalar_t<S>* =
nullptr>
24inline void fill(EigMat& x,
const S& y) {
39 typename T,
typename S,
41inline void fill(T& x, S&& y) {
42 x = std::forward<S>(y);
56template <
typename Vec,
typename S, require_std_vector_t<Vec>* =
nullptr>
57inline void fill(Vec& x, S&& y) {
58 for (
auto& x_val : x) {
void fill(EigMat &x, const S &y)
Fill the specified container with the specified value.
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...