Automatic Differentiation
 
Loading...
Searching...
No Matches
multiply_log.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_MULTIPLY_LOG_HPP
2#define STAN_MATH_PRIM_FUN_MULTIPLY_LOG_HPP
3
6#include <utility>
7
8namespace stan {
9namespace math {
10
24template <typename T1, typename T2>
25inline auto multiply_log(T1&& a, T2&& b) {
26 return lmultiply(std::forward<T1>(a), std::forward<T2>(b));
27}
28
29} // namespace math
30} // namespace stan
31
32#endif
fvar< T > lmultiply(const fvar< T > &x1, const fvar< T > &x2)
Definition lmultiply.hpp:14
auto multiply_log(T1 &&a, T2 &&b)
Return the first argument times the log of the second argument.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...