identity_constrain.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_IDENTITY_CONSTRAIN_HPP
#define STAN_MATH_PRIM_SCAL_FUN_IDENTITY_CONSTRAIN_HPP
namespace stan {
namespace math {
template <typename T>
inline
T identity_constrain(T x) {
return x;
}
template <typename T>
inline
T identity_constrain(const T x, T& /*lp*/) {
return x;
}
}
}
#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.