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

◆ diag_pre_multiply() [2/3]

template<typename T1 , typename T2 , require_any_var_t< T1, T2 > * = nullptr, require_all_nonscalar_prim_or_rev_kernel_expression_t< T1, T2 > * = nullptr>
var_value< matrix_cl< double > > stan::math::diag_pre_multiply ( T1 &&  v1,
T2 &&  v2 
)
inline

Return the product of the diagonal matrix formed from the vector or row_vector and a matrix.

Template Parameters
T1type of the vector/row_vector
T2type of the matrix
Parameters
v1input vector/row_vector
v2input matrix
Returns
product of the diagonal matrix formed from the vector or row_vector and a matrix.

Definition at line 30 of file diag_pre_multiply.hpp.