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

◆ norm2() [1/3]

template<typename Container , require_eigen_vt< is_fvar, Container > * = nullptr>
auto stan::math::norm2 ( const Container &  x)
inline

Compute the L2 norm of the specified vector of values.

Returns L2 norm of a vector.

Template Parameters
TType of input vector.
Parameters
[in]xVector of specified values.
Returns
L2 norm of x.

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 std::vector)
Parameters
vVector.
Returns
L2 norm of v.

Definition at line 22 of file norm2.hpp.