Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
inv_cloglog.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_OPENCL_PRIM_FUN_INV_CLOGLOG_HPP
2
#define STAN_MATH_OPENCL_PRIM_FUN_INV_CLOGLOG_HPP
3
#ifdef STAN_OPENCL
4
5
#include <
stan/math/opencl/matrix_cl.hpp
>
6
#include <
stan/math/opencl/kernel_generator.hpp
>
7
#include <
stan/math/prim/fun/constants.hpp
>
8
9
namespace
stan
{
10
namespace
math {
11
51
template
<
typename
T_x,
52
typename
= require_all_kernel_expressions_and_none_scalar_t<T_x>>
53
inline
auto
inv_cloglog
(T_x&& x) {
// NOLINT
54
return
1 -
exp
(-
exp
(std::forward<T_x>(x)));
55
}
56
}
// namespace math
57
}
// namespace stan
58
59
#endif
60
#endif
constants.hpp
kernel_generator.hpp
matrix_cl.hpp
stan::math::inv_cloglog
fvar< T > inv_cloglog(const fvar< T > &x)
Definition
inv_cloglog.hpp:13
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition
exp.hpp:13
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan
math
opencl
prim
inv_cloglog.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.