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

◆ multiply() [2/17]

template<typename T1 , typename T2 , typename = require_all_kernel_expressions_and_none_scalar_t<T1, T2>>
matrix_cl< return_type_t< T1, T2 > > stan::math::multiply ( const T1 &  A,
const T2 &  B 
)
inline

Computes the product of the specified matrices with the option of specifying the triangularity of either input matrices.

Computes the matrix multiplication C[M, K] = A[M, N] x B[N, K]

Parameters
Afirst matrix
Bsecond matrix
Template Parameters
partial_view_Aspecifies whether the matrix A is a lower/upper triangular or a rectangular matrix
partial_view_Bspecifies whether the matrix B is a lower/upper triangular or a rectangular matrix
Returns
the product of the first and second matrix
Exceptions
<code>std::invalid_argument</code>if the number of columns in A and rows in B do not match

Definition at line 38 of file multiply.hpp.