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

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