1#ifndef STAN_MATH_PRIM_FUNCTOR_MAP_RECT_REDUCE_HPP
2#define STAN_MATH_PRIM_FUNCTOR_MAP_RECT_REDUCE_HPP
36template <
typename F,
typename T_shared_param,
typename T_job_param>
44 const std::vector<double>& x_r,
45 const std::vector<int>& x_i,
46 std::ostream* msgs =
nullptr)
const {
47 return F()(shared_params, job_specific_params, x_r, x_i, msgs).
transpose();
matrix_d operator()(const vector_d &shared_params, const vector_d &job_specific_params, const std::vector< double > &x_r, const std::vector< int > &x_i, std::ostream *msgs=nullptr) const
auto transpose(Arg &&a)
Transposes a kernel generator expression.
Eigen::Matrix< double, Eigen::Dynamic, 1 > vector_d
Type for (column) vector of double values.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > matrix_d
Type for matrix of double values.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...