Stan Math Library
2.11.0
reverse mode automatic differentiation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
stan
math
prim
scal
fun
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
stan
Definition:
log_sum_exp.hpp:8
stan::math::inv_logit
fvar< T > inv_logit(const fvar< T > &x)
Definition:
inv_logit.hpp:15
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition:
exp.hpp:10
[
Stan Home Page
]
© 2011–2016, Stan Development Team.