TRIQS/nda 2.0.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
norm.hpp
#include "../algorithms.hpp"
#include "../basic_functions.hpp"
#include "../blas/dot.hpp"
#include "../concepts.hpp"
#include "../mapped_functions.hxx"
#include "../traits.hpp"
#include <cmath>
#include <complex>
#include <limits>

Detailed Description

Provides the p-norm for general arrays/views of rank 1 and with scalar elements.

Definition in file norm.hpp.

Go to the source code of this file.

Functions

template<ArrayOfRank< 1 > X>
requires (Scalar<get_value_t<X>>)
double nda::linalg::norm (X const &x, double p=2.0)
 Calculate the \( p \)-norm of a 1-dimensional array/view with scalar elements.