MADNESS  0.10.1
Namespaces | Functions | Variables
legendre.cc File Reference

Legendre quadrature, polynomials and scaling functions. More...

#include <iostream>
#include <cmath>
#include <madness/mra/legendre.h>
#include <madness/tensor/tensor.h>
Include dependency graph for legendre.cc:

Namespaces

 madness
 File holds all helper structures necessary for the CC_Operator and CC2 class.
 

Functions

bool madness::gauss_legendre (int n, double xlo, double xhi, double *x, double *w)
 
bool madness::gauss_legendre_numeric (int n, double xlo, double xhi, double *x, double *w)
 Compute the Gauss-Legendre quadrature points and weights. More...
 
bool madness::gauss_legendre_test (bool print)
 
void madness::initialize_legendre_stuff ()
 Call this single threaded to initialize static data (used read only by multiple threads) More...
 
void madness::legendre_polynomials (double x, long order, double *p)
 Evaluate the Legendre polynomials up to the given order at x in [-1,1]. More...
 
void madness::legendre_scaling_functions (double x, long k, double *p)
 Evaluate the first k Legendre scaling functions. More...
 
void madness::load_quadrature (World &world, const char *dir)
 Collective routine to pre-load and cache the quadrature points and weights. More...
 
static bool madness::read_data ()
 read_data loads the precomputed Gauss-Legendre data More...
 
static double madness::testf (int n, double x)
 

Variables

static bool madness::data_is_read = false
 
static const char * madness::filename = "gaussleg"
 
static const int madness::max_npt = 64
 
static double madness::nn1 [100]
 
static double madness::phi_norms [100]
 
static Tensor< double > madness::points [max_npt+1]
 
static Tensor< double > madness::weights [max_npt+1]
 

Detailed Description

Legendre quadrature, polynomials and scaling functions.