Skip to content

num::norm

Defined in header <container/vector_ops.hpp>

real norm(const vec<real> &x) noexcept;  // (1)

real norm(const vec<cplx> &x) noexcept;  // (2)

The Euclidean norm \(\|x\|_2\), through the build's default backend.