All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
logit.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_LOGIT_HPP
#define STAN_MATH_PRIM_SCAL_FUN_LOGIT_HPP
#include <boost/math/tools/promotion.hpp>
namespace stan {
namespace math {
template <typename T>
inline typename boost::math::tools::promote_args<T>::type
logit(const T a) {
using std::log;
return log(a / (1.0 - a));
}
}
}
#endif
stan::math::log
fvar< T > log(const fvar< T > &x)
Definition: log.hpp:15
stan::math::logit
fvar< T > logit(const fvar< T > &x)
Definition: logit.hpp:17

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