MADNESS  0.10.1
Functions
test6.cc File Reference

test various functionality for 6d functions More...

#include <madness/mra/mra.h>
#include <madness/world/test_utilities.h>
Include dependency graph for test6.cc:

Functions

int check (bool b, const std::string message)
 
int check_small (const double val, const double eps, const std::string message)
 
static double gauss_3d (const coord_3d &r)
 
static double gauss_plus_one_3d (const coord_3d &r)
 
static double gauss_plus_tight_3d (const coord_3d &r)
 
bool is_large (const double &val, const double &eps)
 
bool is_small (const double &val, const double &eps)
 
template<size_t NDIM>
void load_function (World &world, Function< double, NDIM > &pair, const std::string name)
 
int main (int argc, char **argv)
 
std::string ok (const bool b)
 
static double one_3d (const coord_3d &r)
 
static double one_6d (const coord_6d &r)
 
template<size_t NDIM>
void save_function (World &world, Function< double, NDIM > &pair, const std::string name)
 
int test (World &world, const long &k, const double thresh)
 
int test_add (World &world, const long &k, const double thresh)
 test f(1,2) + g(1,2) for both f and g reconstructed More...
 
int test_convolution (World &world, const long &k, const double thresh)
 test 6D convolution More...
 
int test_exchange (World &world, const long &k, const double thresh)
 test f(1,2) + g(1,2) for both f and g reconstructed More...
 
template<typename T , std::size_t NDIM>
int test_hartree_product (World &world, const long &k, const double thresh)
 test f(1,2) = g(1) h(2) More...
 
int test_inner (World &world, const long &k, const double thresh)
 test inner product using redundant wave functions More...
 
int test_multiply (World &world, const long &k, const double thresh)
 test f(1,2)*g(1) More...
 
int test_replicate (World &world, const long &k, const double thresh)
 
template<typename T , std::size_t NDIM>
int test_vector_composite (World &world, const long &k, const double thresh)
 
static double tightgauss_3d (const coord_3d &r)
 
static double V (const Vector< double, 3 > &r)
 
static double zero_3d (const coord_3d &r)
 

Detailed Description

test various functionality for 6d functions

Function Documentation

◆ check()

int check ( bool  b,
const std::string  message 
)

References b, ok(), and madness::print().

Referenced by test_add().

◆ check_small()

int check_small ( const double  val,
const double  eps,
const std::string  message 
)

References is_small(), ok(), and madness::print().

Referenced by test_add().

◆ gauss_3d()

static double gauss_3d ( const coord_3d r)
static

◆ gauss_plus_one_3d()

static double gauss_plus_one_3d ( const coord_3d r)
static

References gauss_3d(), and one_3d().

Referenced by test_add().

◆ gauss_plus_tight_3d()

static double gauss_plus_tight_3d ( const coord_3d r)
static

References gauss_3d(), and tightgauss_3d().

Referenced by test_add().

◆ is_large()

bool is_large ( const double &  val,
const double &  eps 
)

◆ is_small()

bool is_small ( const double &  val,
const double &  eps 
)

◆ load_function()

template<size_t NDIM>
void load_function ( World world,
Function< double, NDIM > &  pair,
const std::string  name 
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ ok()

std::string ok ( const bool  b)

◆ one_3d()

static double one_3d ( const coord_3d r)
static

Referenced by gauss_plus_one_3d(), and test_add().

◆ one_6d()

static double one_6d ( const coord_6d r)
static

Referenced by test_add().

◆ save_function()

template<size_t NDIM>
void save_function ( World world,
Function< double, NDIM > &  pair,
const std::string  name 
)

◆ test()

int test ( World world,
const long &  k,
const double  thresh 
)

◆ test_add()

int test_add ( World world,
const long &  k,
const double  thresh 
)

◆ test_convolution()

int test_convolution ( World world,
const long &  k,
const double  thresh 
)

◆ test_exchange()

int test_exchange ( World world,
const long &  k,
const double  thresh 
)

◆ test_hartree_product()

template<typename T , std::size_t NDIM>
int test_hartree_product ( World world,
const long &  k,
const double  thresh 
)

◆ test_inner()

int test_inner ( World world,
const long &  k,
const double  thresh 
)

test inner product using redundant wave functions

References a1, a2, f1, f2, gauss_3d(), madness::hartree_product(), madness::inner(), is_small(), madness::detail::norm(), ok(), madness::print(), madness::World::rank(), and thresh.

Referenced by main().

◆ test_multiply()

int test_multiply ( World world,
const long &  k,
const double  thresh 
)

◆ test_replicate()

int test_replicate ( World world,
const long &  k,
const double  thresh 
)

◆ test_vector_composite()

template<typename T , std::size_t NDIM>
int test_vector_composite ( World world,
const long &  k,
const double  thresh 
)

◆ tightgauss_3d()

static double tightgauss_3d ( const coord_3d r)
static

◆ V()

static double V ( const Vector< double, 3 > &  r)
static

References e().

Referenced by test_convolution().

◆ zero_3d()

static double zero_3d ( const coord_3d r)
static

Referenced by test_add().