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

◆ multiply() [6/16]

template<typename T1 , typename T2 , require_stan_scalar_t< T2 > * = nullptr, require_all_nonscalar_prim_or_rev_kernel_expression_t< T1 > * = nullptr, require_any_var_t< T1, T2 > * = nullptr>
auto stan::math::multiply ( const T1 &  A,
const T2 &  B 
)
inline

Return matrix multiplied by a scalar.

Return the product of two matrices.

Template Parameters
T1type of the matrix or expression
T2type of the scalar
Parameters
Amatrix
Bscalar
Returns
product of matrix and scalar

This version does not handle row vector times column vector

Template Parameters
T1type of first matrix
T2type of second matrix
Parameters
[in]Afirst matrix
[in]Bsecond matrix
Returns
A * B

Definition at line 104 of file multiply.hpp.