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

◆ dot_product() [2/6]

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

Returns the dot product.

Template Parameters
T1type of the first vector
T2type of the second vector
Parameters
[in]v1First vector.
[in]v2Second vector.
Returns
Dot product of the vectors.
Exceptions
std::domain_errorif sizes of v1 and v2 do not match.

Definition at line 28 of file dot_product.hpp.