1 #ifndef __STAN__AGRAD__REV__MATRIX__ASSIGN_TO_VAR_HPP__
2 #define __STAN__AGRAD__REV__MATRIX__ASSIGN_TO_VAR_HPP__
5 #include <boost/math/tools/promotion.hpp>
32 template <
typename LHS,
typename RHS>
33 inline void assign_to_var(std::vector<LHS>& x,
const std::vector<RHS>& y) {
35 for (
size_t i = 0; i < x.size(); ++i)
38 template <
typename LHS,
typename RHS,
int R,
int C>
40 const Eigen::Matrix<RHS,R,C>& y) {
47 template <
typename LHS,
typename RHS,
int R,
int C>
49 const Eigen::Matrix<RHS,R,C>& y) {