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

◆ columns_dot_product() [2/4]

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::columns_dot_product ( T1 &&  v1,
T2 &&  v2 
)
inline

Returns the dot product of columns of the specified matrices.

Template Parameters
T1type of the first matrix
T2type of the second matrix
Parameters
v1Matrix of first vectors.
v2Matrix of second vectors.
Returns
Dot product of the vectors.
Exceptions
std::invalid_argumentIf the vectors are not the same size

Definition at line 30 of file columns_dot_product.hpp.