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

◆ lmultiply() [7/10]

template<typename T1 , typename T2 , require_any_container_t< T1, T2 > * = nullptr, require_all_not_var_matrix_t< T1, T2 > * = nullptr>
auto stan::math::lmultiply ( const T1 &  a,
const T2 &  b 
)
inline

Return the result of applying lmultiply to the arguments elementwise, with broadcasting if one of the arguments is a scalar.

Return the product a * log(b).

Return the elementwise product a * log(b).

At least one of the arguments must be a container.

Template Parameters
T1type of the first argument
T2type of the second argument
Parameters
afirst argument
bsecond argument
Returns
result of applying lmultiply to the arguments

Both T1 and T2 are matrices, and one of T1 or T2 must be a var_value

Template Parameters
T1Type of first argument
T2Type of second argument
Parameters
aFirst argument
bSecond argument
Returns
elementwise product of a and log(b)
Template Parameters
T1Type of matrix argument
T2Type of scalar argument
Parameters
aMatrix argument
bScalar argument
Returns
Product of a and log(b)
Template Parameters
T1Type of scalar argument
T2Type of matrix argument
Parameters
aScalar argument
bMatrix argument
Returns
Product of a and log(b)

Definition at line 46 of file lmultiply.hpp.