1 #ifndef STAN_MATH_PRIM_MAT_FUN_VALUE_OF_REC_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_VALUE_OF_REC_HPP 22 template <
typename T,
int R,
int C>
24 const Eigen::Matrix<T, R, C>& M) {
25 Eigen::Matrix<double, R, C> Md(M.rows(), M.cols());
26 for (
int j = 0; j < M.cols(); j++)
27 for (
int i = 0; i < M.rows(); i++)
43 template <
int R,
int C>
45 const Eigen::Matrix<double, R, C>& x) {
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.