MADNESS 0.10.1
supbound.h File Reference

Bounds on the largest magnitude of a function inside a box, from its scaling coefficients. More...

#include <madness/mra/key.h>
#include <madness/mra/funcdefaults.h>
#include <madness/tensor/tensor.h>
#include <madness/world/worldhash.h>
#include <cmath>
#include <unordered_map>
Include dependency graph for supbound.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  madness::SupBoundMap< NDIM >
 Bounds on sup|f| per box of a function's tree (supbound.h). More...

Namespaces

namespace  madness
 Namespace for all elements and tools of MADNESS.

Detailed Description

Bounds on the largest magnitude of a function inside a box, from its scaling coefficients.

Inside the box (n, l) a function with scaling coefficients c is, in user coordinates,

f(x) = 2^{NDIM n/2} V^{-1/2} sum_i c_i prod_d phi_{i_d}(2^n x_d - l_d)

(x in simulation coordinates, V the cell volume; FunctionCommonData::coeffs2values), and the normalized Legendre scaling functions phi_i(t) = sqrt(2i+1) P_i(2t-1) peak at sqrt(2i+1) on the box faces. Hence

sup_box |f| <= 2^{NDIM n/2} V^{-1/2} sum_i |c_i| prod_d sqrt(2 i_d + 1),

rigorously, at k^NDIM multiply-adds per box. The bound lies above the box's rms magnitude ||c|| / sqrt(V_box) by a factor between 1 (a constant) and k^NDIM; for a function that is smooth across the box it is close to 1, and it is the larger the more f varies inside the box.

SupBoundMap holds that bound for the boxes of a tree: a leaf's from its coefficients, an interior node's as the max over its children (the sup over a union is the max of the sups), and a box below a leaf takes the leaf's (the sup over a sub-box is at most the sup over the box). An interior node's own coefficients (a redundant tree) are a projection of f and bound nothing, so only the leaves' coefficients are read. FunctionImpl::sup_bound_map() builds the map for a function.