1 #ifndef STAN_MATH_FWD_SCAL_FUN_TO_FVAR_HPP
2 #define STAN_MATH_FWD_SCAL_FUN_TO_FVAR_HPP
3 
4 #include <stan/math/fwd/core.hpp>
5 
6 namespace stan {
7 namespace math {
8 
9 template <typename T>
to_fvar(const T & x)10 inline fvar<T> to_fvar(const T& x) {
11   return fvar<T>(x);
12 }
13 
14 template <typename T>
to_fvar(const fvar<T> & x)15 inline fvar<T> to_fvar(const fvar<T>& x) {
16   return x;
17 }
18 
19 }  // namespace math
20 }  // namespace stan
21 #endif
22