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
8
9namespace stan {
10namespace math {
11
51template <typename T_x,
52 typename = require_all_kernel_expressions_and_none_scalar_t<T_x>>
53inline 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
fvar< T > inv_cloglog(const fvar< T > &x)
fvar< T > exp(const fvar< T > &x)
Definition exp.hpp:13
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...