Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations 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 
38  template <typename T>
39  inline typename boost::math::tools::promote_args<T>::type
40  log1m(T x) {
41  return log1p(-x);
42  }
43 
44  }
45 }
46 
47 #endif
boost::math::tools::promote_args< T >::type log1p(const T x)
Return the natural logarithm of one plus the specified value.
Definition: log1p.hpp:39
boost::math::tools::promote_args< T >::type log1m(T x)
Return the natural logarithm of one minus the specified value.
Definition: log1m.hpp:40

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