Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
inv_cloglog.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_FUN_INV_CLOGLOG_HPP
2
#define STAN_MATH_PRIM_SCAL_FUN_INV_CLOGLOG_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <cmath>
6
7
namespace
stan
{
8
namespace
math {
9
48
inline
double
inv_cloglog
(
double
x) {
49
using
std::exp
;
50
return
1 -
exp
(-
exp
(x));
51
}
52
53
}
// namespace math
54
}
// namespace stan
55
56
#endif
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition:
exp.hpp:11
stan::math::inv_cloglog
fvar< T > inv_cloglog(const fvar< T > &x)
Definition:
inv_cloglog.hpp:12
[
Stan Home Page
]
© 2011–2018, Stan Development Team.