Stan Math Library  2.20.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 
5 namespace stan {
6 namespace math {
7 
19 template <typename T>
20 inline T identity_constrain(const T& x) {
21  return x;
22 }
23 
36 template <typename T>
37 inline T identity_constrain(const T& x, T& /*lp*/) {
38  return x;
39 }
40 
41 } // namespace math
42 
43 } // namespace stan
44 
45 #endif
T identity_constrain(const T &x)
Returns the result of applying the identity constraint transform to the input.

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