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