Stan Math Library  2.11.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 
8  namespace math {
9 
50  inline double inv_logit(const double a) {
51  using std::exp;
52  return 1.0 / (1.0 + exp(-a));
53  }
54 
55  }
56 }
57 
58 #endif
59 
fvar< T > inv_logit(const fvar< T > &x)
Definition: inv_logit.hpp:15
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10

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