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

◆ dot_product() [6/6]

template<typename T1 , typename T2 , require_all_vector_t< T1, T2 > * = nullptr, require_not_complex_t< return_type_t< T1, T2 > > * = nullptr, require_all_not_std_vector_t< T1, T2 > * = nullptr, require_any_st_var< T1, T2 > * = nullptr>
var stan::math::dot_product ( const T1 &  v1,
const T2 &  v2 
)
inline

Returns the dot product.

Template Parameters
T1type of elements in the first vector
T2type of elements in 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 38 of file dot_product.hpp.