Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
inv_cloglog.hpp
Go to the documentation of this file.
1 #ifndef __STAN__MATH__FUNCTIONS__INV_CLOGLOG_HPP__
2 #define __STAN__MATH__FUNCTIONS__INV_CLOGLOG_HPP__
3 
4 #include <boost/math/tools/promotion.hpp>
5 
6 namespace stan {
7  namespace math {
8 
22  template <typename T>
23  inline typename boost::math::tools::promote_args<T>::type
24  inv_cloglog(T x) {
25  using std::exp;
26  return exp(-exp(x));
27  }
28 
29  }
30 }
31 
32 #endif

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