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

◆ multiply_log() [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::multiply_log ( const T1 &  a,
const T2 &  b 
)
inline

Enables the vectorized application of the multiply_log function, when the first and/or second arguments are containers.

Return the product a * log(b).

Return the elementwise product a * log(b).

Template Parameters
T1type of first input
T2type of second input
Parameters
aFirst input
bSecond input
Returns
multiply_log function applied to the two inputs.

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 70 of file multiply_log.hpp.