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

◆ multiply() [1/17]

template<typename Mat1 , typename Mat2 , require_all_eigen_vt< is_fvar, Mat1, Mat2 > * = nullptr, require_vt_same< Mat1, Mat2 > * = nullptr, require_not_eigen_row_and_col_t< Mat1, Mat2 > * = nullptr>
auto stan::math::multiply ( const Mat1 &  m1,
const Mat2 &  m2 
)
inline

Return the product of the specified matrices.

The number of columns in the first matrix must be the same as the number of rows in the second matrix.

Template Parameters
Mat1type of the first matrix or expression
Mat2type of the second matrix or expression
Parameters
m1first matrix or expression
m2second matrix or expression
Returns
the product of the first and second matrices
Exceptions
<code>std::invalid_argument</code>if the number of columns of m1 does not match the number of rows of m2.

Definition at line 18 of file multiply.hpp.