All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
log1m.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_LOG1M_HPP
#define STAN_MATH_PRIM_SCAL_FUN_LOG1M_HPP
#include <boost/math/tools/promotion.hpp>
#include <stan/math/prim/scal/fun/log1p.hpp>
namespace stan {
namespace math {
template <typename T>
inline typename boost::math::tools::promote_args<T>::type
log1m(T x) {
return log1p(-x);
}
}
}
#endif
stan::math::log1p
fvar< T > log1p(const fvar< T > &x)
Definition: log1p.hpp:16
log1p.hpp
stan::math::log1m
fvar< T > log1m(const fvar< T > &x)
Definition: log1m.hpp:16

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