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

◆ norm2() [2/4]

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

Returns L2 norm of a vector.

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

Template Parameters
Containertype of the vector (must be derived from Eigen::MatrixBase)
Parameters
xVector.
Returns
L2 norm of x.

Definition at line 22 of file norm2.hpp.