1#ifndef STAN_MATH_PRIM_FUN_REP_ROW_VECTOR_HPP
2#define STAN_MATH_PRIM_FUN_REP_ROW_VECTOR_HPP
10template <
typename T_ret,
typename T,
11 require_eigen_row_vector_t<T_ret>* =
nullptr,
12 require_stan_scalar_t<T>* =
nullptr>
15 return T_ret::Constant(n, x);
17template <
typename T, require_stan_scalar_t<T>* =
nullptr>
19 return rep_row_vector<Eigen::Matrix<return_type_t<T>, 1, Eigen::Dynamic>>(x,
auto rep_row_vector(const scalar_type_t< T > &x, int n)
Creates a matrix_cl representing a row vector by replicating the input value.
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...