TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
norm.hpp File Reference
#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 > A>
double nda::norm (A const &a, double p=2.0)
 Calculate the p-norm of an nda::ArrayOfRank<1> object \( \mathbf{x} \) with scalar values. The p-norm is defined as.