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

◆ dot_product() [5/6]

template<typename Scalar1 , typename Scalar2 , typename Alloc1 , typename Alloc2 , require_all_stan_scalar_t< Scalar1, Scalar2 > * = nullptr>
return_type_t< Scalar1, Scalar2 > stan::math::dot_product ( const std::vector< Scalar1, Alloc1 > &  v1,
const std::vector< Scalar2, Alloc2 > &  v2 
)
inline

Returns the dot product of the specified arrays.

Parameters
v1First array.
v2Second array.
Exceptions
std::domain_errorif the vectors are not the same size.

Definition at line 56 of file dot_product.hpp.