MADNESS  0.10.1
Classes | Namespaces | Functions | Variables
twoscale.cc File Reference

Routines to provide twoscale & correlation coeffs for Legendre basis. More...

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <madness/mra/twoscale.h>
#include <madness/tensor/tensor.h>
#include <madness/misc/misc.h>
Include dependency graph for twoscale.cc:

Classes

class  madness::twoscale_cache_class
 

Namespaces

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

Functions

bool madness::autoc (int k, Tensor< double > *c)
 Return the autocorrelation coefficients for scaling functions of given order. More...
 
void madness::load_coeffs (World &world, const char *dir)
 Collective routine to load and cache twoscale & autorrelation coefficients. More...
 
static int madness::parity (int i)
 Return +1 if i is even, -1 if i is odd ... perverse no if-test form. More...
 
static double madness::phase (long i)
 
static bool madness::read_data (int k)
 
static bool madness::read_twoscale (int kmax)
 
static Tensor< double > madness::readmat (int k, FILE *file)
 
bool madness::test_autoc ()
 
bool madness::test_two_scale_coefficients ()
 
bool madness::two_scale_coefficients (int k, Tensor< double > *h0, Tensor< double > *h1, Tensor< double > *g0, Tensor< double > *g1)
 Return the two scale coefficients in the Legendre basis. More...
 
bool madness::two_scale_hg (int k, Tensor< double > *hg)
 

Variables

static Tensor< double > madness::_c
 
static Tensor< double > madness::_cread
 
static const char * madness::autocorr_filename = "autocorr"
 
static class madness::twoscale_cache_class madness::cache [kmax+1]
 
static int madness::kcur = -1
 
static const int madness::kmax = 60
 
static const int madness::kmax_autoc = 30
 
static int madness::kread = -1
 
static bool madness::loaded = 0
 
static const char * madness::twoscale_filename = "coeffs"
 

Detailed Description

Routines to provide twoscale & correlation coeffs for Legendre basis.