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

◆ dot_product() [1/6]

template<typename T_a , typename T_b , require_all_kernel_expressions_and_none_scalar_t< T_a, T_b > * = nullptr>
auto stan::math::dot_product ( const T_a &  a,
const T_b &  b 
)
inline

Returns the dot product of the specified vectors.

Template Parameters
T_atype of the first vector
T_btype of the second vector
Parameters
aFirst vector.
bSecond 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 26 of file dot_product.hpp.