1 #ifndef STAN__AGRAD__REV__MATRIX__VALUE_OF_HPP
2 #define STAN__AGRAD__REV__MATRIX__VALUE_OF_HPP
16 inline const Eigen::Matrix<double,R,C> &
value_of(
const Eigen::Matrix<double,R,C> &M) {
27 inline Eigen::Matrix<double,R,C>
value_of(
const Eigen::Matrix<var,R,C> &M) {
29 Eigen::Matrix<double,R,C> Md(M.rows(),M.cols());
30 for (j = 0; j < M.cols(); j++)
31 for (i = 0; i < M.rows(); i++)
32 Md(i,j) = M(i,j).vi_->val_;
T value_of(const fvar< T > &v)
Return the value of the specified variable.