Stan Math Library  2.14.0
reverse mode automatic differentiation
identity_constrain.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_IDENTITY_CONSTRAIN_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_IDENTITY_CONSTRAIN_HPP
3 
4 namespace stan {
5  namespace math {
6 
19  template <typename T>
20  inline
22  return x;
23  }
24 
38  template <typename T>
39  inline
40  T identity_constrain(const T x, T& /*lp*/) {
41  return x;
42  }
43 
44  }
45 
46 }
47 
48 #endif
T identity_constrain(T x)
Returns the result of applying the identity constraint transform to the input.

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