30 return std::sqrt(
sum);
constexpr idx size() const noexcept
real dot(const Vector &x, const Vector &y)
void scale(Vector &v, real alpha)
real norm(const Vector &x)
void add(const Vector &x, const Vector &y, Vector &z)
void axpy(real alpha, const Vector &x, Vector &y)
constexpr T ipow(T x) noexcept
Compute x^N at compile time via repeated squaring.