MADNESS 0.10.1
writecoeff2.cc File Reference
#include <complex>
#include <iomanip>
#include <iostream>
#include <madness/mra/mra.h>
#include <memory>
Include dependency graph for writecoeffs/writecoeff2.cc:

Typedefs

typedef Vector< double, D > coordT
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, int num_leaf_nodes)
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 Documentation

◆ coordT

typedef Vector<double, D> coordT

◆ factoryT

◆ functionT

◆ functorT

typedef std::shared_ptr<FunctionFunctorInterface<dataT, D> > functorT

◆ keyT

typedef Key<D> keyT

◆ operatorT

Function Documentation

◆ count_leaf_nodes()

template<typename T, std::size_t NDIM>
size_t count_leaf_nodes ( const Function< T, NDIM > & f)

References f.

Referenced by write_function().

◆ f()

dataT f ( const coordT & r)
static

◆ main()

◆ read_function()

◆ read_function_coeffs()

template<typename T, std::size_t NDIM>
void read_function_coeffs ( Function< T, NDIM > & f,
std::istream & in,
int num_leaf_nodes )

◆ test()

◆ write_function()

template<typename T, std::size_t NDIM>
void write_function ( const Function< T, NDIM > & f,
std::ostream & out )

◆ write_function_coeffs()

template<typename T, std::size_t NDIM>
void write_function_coeffs ( const Function< T, NDIM > & f,
std::ostream & out,
const Key< NDIM > & key )

Variable Documentation

◆ D

const size_t D = 2
static

◆ k

const long k = 5
static

◆ L

const double L = 4.0
static

◆ thresh

const double thresh = 1e-3
static