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

◆ dot_product() [3/6]

template<typename Vec1 , typename Vec2 , require_all_eigen_vector_t< Vec1, Vec2 > * = nullptr, require_not_var_t< return_type_t< Vec1, Vec2 > > * = nullptr>
auto stan::math::dot_product ( const Vec1 &  v1,
const Vec2 &  v2 
)
inline

Returns the dot product of the specified vectors.

Parameters
v1First vector.
v2Second vector.
Returns
Dot product of the vectors.
Exceptions
std::invalid_argumentIf the vectors are not the same size or if they are both not vector dimensioned.

Definition at line 24 of file dot_product.hpp.