MADNESS  version 0.9
Namespaces | Functions
legendre.cc File Reference

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

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

Namespaces

 madness
 Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
 

Functions

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...
 
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 (int n, double xlo, double xhi, double *x, double *w)
 
bool madness::gauss_legendre_test (bool print)
 

Detailed Description

Legendre quadrature, polynomials and scaling functions.