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

◆ dot_self() [4/5]

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

Returns squared norm of a vector or matrix.

For vectors that equals the dot product of the specified vector with itself.

Template Parameters
Ttype of the vector (must be derived from Eigen::MatrixBase)
Parameters
vVector.

Definition at line 30 of file dot_self.hpp.