Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ lmultiply() [11/11]

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

Return the elementwise product a * log(b).

Return the product a * log(b).

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 104 of file lmultiply.hpp.