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

◆ dot_self() [5/5]

template<typename T , require_eigen_vector_vt< is_var, T > * = nullptr>
var stan::math::dot_self ( const T &  v)
inline

Returns the dot product of a vector of var with itself.

Returns the dot product of a var_value<Vector> with itself.

Template Parameters
Ttype of the vector (must have one compile time dimension equal to 1)
Parameters
[in]vVector.
Returns
Dot product of the vector with itself.
Template Parameters
Avar_value<> whose inner type has one compile time row or column.
Parameters
[in]vVector.
Returns
Dot product of the vector with itself.

Definition at line 24 of file dot_self.hpp.