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

◆ norm2() [2/3]

template<typename T , require_eigen_vt< std::is_arithmetic, T > * = nullptr>
double stan::math::norm2 ( const T &  v)
inline

Returns L2 norm of a vector.

For vectors that equals the square-root of the sum of squares of the elements.

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

Definition at line 20 of file norm2.hpp.