value_of.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_FWD_SCAL_FUN_VALUE_OF_HPP
#define STAN_MATH_FWD_SCAL_FUN_VALUE_OF_HPP
#include <stan/math/fwd/core.hpp>
namespace stan {
namespace math {
template<typename T>
inline T value_of(const fvar<T>& v) {
return v.val_;
}
}
}
#endif
core.hpp
stan
Definition: log_sum_exp.hpp:8
stan::math::value_of
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Definition: value_of.hpp:16
stan::math::fvar::val_
T val_
Definition: fvar.hpp:15
stan::math::fvar
Definition: fvar.hpp:14

[ Stan Home Page ] © 2011–2016, Stan Development Team.