All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
multiply_log.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_MULTIPLY_LOG_HPP
#define STAN_MATH_PRIM_SCAL_FUN_MULTIPLY_LOG_HPP
#include <boost/math/tools/promotion.hpp>
namespace stan {
namespace math {
template <typename T_a, typename T_b>
inline typename boost::math::tools::promote_args<T_a, T_b>::type
multiply_log(const T_a a, const T_b b) {
using std::log;
if (b == 0.0 && a == 0.0)
return 0.0;
return a * log(b);
}
}
}
#endif
stan::math::log
fvar< T > log(const fvar< T > &x)
Definition: log.hpp:15
stan::math::multiply_log
fvar< T > multiply_log(const fvar< T > &x1, const fvar< T > &x2)
Definition: multiply_log.hpp:15

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