| Stan Math Library 2.12.0 reverse mode automatic differentiation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
21 T identity_constrain(T x) {
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
stan
Definition: log_sum_exp.hpp:8
stan::math::identity_constrain
T identity_constrain(T x)
Returns the result of applying the identity constraint transform to the input.
Definition: identity_constrain.hpp:21

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