Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ lmultiply() [6/10]

template<typename T1 , typename T2 , require_all_arithmetic_t< T1, T2 > * = nullptr>
return_type_t< T1, T2 > stan::math::lmultiply ( const T1  a,
const T2  b 
)
inline

Return the first argument times the log of the second argument.

The result is 0 if both arguments are 0. The funcgtion is defined by lmultiply(x, y) = x * log(y) if x or y is non-zero and lmultiply(0, 0) = 0 otherwise.

Template Parameters
T1type of the first argument
T2type of the second argument
Parameters
afirst argument
bsecond argument
Returns
the first argument times the log of the second argument

Definition at line 25 of file lmultiply.hpp.