MADNESS 0.10.1
|
#include <complex>
#include <iomanip>
#include <iostream>
#include <madness/mra/mra.h>
#include <memory>
Typedefs | |
typedef Vector< double, D > | coordT |
typedef double | dataT |
typedef FunctionFactory< dataT, D > | factoryT |
typedef Function< dataT, D > | functionT |
typedef std::shared_ptr< FunctionFunctorInterface< dataT, D > > | functorT |
typedef Key< D > | keyT |
typedef SeparatedConvolution< dataT, D > | operatorT |
Functions | |
template<typename T , std::size_t NDIM> | |
size_t | count_leaf_nodes (const Function< T, NDIM > &f) |
static dataT | f (const coordT &r) |
int | main (int argc, char **argv) |
template<typename T , std::size_t NDIM> | |
Function< T, NDIM > | read_function (World &world, std::istream &in) |
template<typename T , std::size_t NDIM> | |
void | read_function_coeffs (Function< T, NDIM > &f, std::istream &in) |
void | test (World &world) |
template<typename T , std::size_t NDIM> | |
void | write_function (const Function< T, NDIM > &f, std::ostream &out) |
template<typename T , std::size_t NDIM> | |
void | write_function_coeffs (const Function< T, NDIM > &f, std::ostream &out, const Key< NDIM > &key) |
Variables | |
static const size_t | D = 2 |
static const long | k = 5 |
static const double | L = 4.0 |
static const double | thresh = 1e-3 |
typedef double dataT |
typedef FunctionFactory<dataT, D> factoryT |
typedef std::shared_ptr<FunctionFunctorInterface<dataT, D> > functorT |
typedef SeparatedConvolution<dataT, D> operatorT |
References madness::f.
Referenced by write_function().
References madness::Vector< T, N >::normf(), and R.
int main | ( | int | argc, |
char ** | argv | ||
) |
References madness::WorldGopInterface::fence(), madness::finalize(), madness::World::gop, madness::initialize(), k, L, madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_initial_level(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_refine(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::FunctionDefaults< NDIM >::set_truncate_mode(), madness::startup(), test(), and thresh.
void read_function_coeffs | ( | Function< T, NDIM > & | f, |
std::istream & | in | ||
) |
References madness::f, NDIM, madness::Tensor< T >::ptr(), and madness::BaseTensor::size().
Referenced by read_function().
void test | ( | World & | world | ) |
void write_function | ( | const Function< T, NDIM > & | f, |
std::ostream & | out | ||
) |
References count_leaf_nodes(), d, madness::f, madness::FunctionDefaults< NDIM >::get_cell(), NDIM, and write_function_coeffs().
Referenced by test().
void write_function_coeffs | ( | const Function< T, NDIM > & | f, |
std::ostream & | out, | ||
const Key< NDIM > & | key | ||
) |
References madness::f, madness::Key< NDIM >::level(), NDIM, and madness::Key< NDIM >::translation().
Referenced by write_function().
|
static |
|
static |
Referenced by main(), and read_function().
|
static |
Referenced by main().