Stan Math Library  2.12.0
reverse mode automatic differentiation
inv_logit.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_INV_LOGIT_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_INV_LOGIT_HPP
3 
4 #include <cmath>
5 
6 namespace stan {
7  namespace math {
8 
49  inline double inv_logit(const double a) {
50  using std::exp;
51  return 1.0 / (1.0 + exp(-a));
52  }
53 
54  }
55 }
56 #endif
fvar< T > inv_logit(const fvar< T > &x)
Definition: inv_logit.hpp:14
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10

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