Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
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
#include <
stan/math/prim/meta.hpp
>
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
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::identity_constrain
T identity_constrain(const T &x)
Returns the result of applying the identity constraint transform to the input.
Definition:
identity_constrain.hpp:20
[
Stan Home Page
]
© 2011–2018, Stan Development Team.