1 #ifndef STAN__MATH__FUNCTIONS__INV_LOGIT_HPP
2 #define STAN__MATH__FUNCTIONS__INV_LOGIT_HPP
4 #include <boost/math/tools/promotion.hpp>
51 inline typename boost::math::tools::promote_args<T>::type
54 return 1.0 / (1.0 +
exp(-a));
Eigen::Matrix< T, Rows, Cols > exp(const Eigen::Matrix< T, Rows, Cols > &m)
Return the element-wise exponentiation of the matrix or vector.
boost::math::tools::promote_args< T >::type inv_logit(const T a)
Returns the inverse logit function applied to the argument.
fvar< T > exp(const fvar< T > &x)