MADNESS
0.10.1
|
Classes | |
class | ComplexFuncIdentOp |
the identity operator for a complex function More... | |
class | ComplexFuncLinearOp |
class | ComplexVecIdentOp |
the identity operator for complex vectors More... | |
class | ComplexVecLinearOp |
an arbitrary operator for complex vectors More... | |
class | RealFuncIdentOp |
the identity operator for a real function More... | |
class | RealFuncLinearOp |
class | RealVecIdentOp |
the identity operator for real vectors More... | |
class | RealVecLinearOp |
an arbitrary operator for real vectors More... | |
Typedefs | |
typedef bool(* | testptr) (void) |
function pointer typedef (for making an array) More... | |
Functions | |
bool | cplxfunc0 () |
test complex functions, converge after 0 steps More... | |
bool | cplxfunc1 () |
test complex functions, converge after 1 step More... | |
bool | cplxfunc2 () |
test complex functions, converge after >1 steps More... | |
bool | cplxvec0 () |
test complex vectors, converge after 0 steps More... | |
bool | cplxvec1 () |
test complex vectors, converge after 1 step More... | |
bool | cplxvec2 () |
test complex vectors, converge after >1 steps More... | |
template<typename T > | |
static void | invert (const Key< 3 > &key, Tensor< T > &t) |
static double | magfunc (const Vector< double, 3 > &pt) |
Some functions for testing MADNESS Functions... More... | |
int | main (int argc, char **argv) |
main routine: execute the tests More... | |
bool | realfunc0 () |
test real functions, converge after 0 steps More... | |
bool | realfunc1 () |
test real functions, converge after 1 step More... | |
bool | realfunc2 () |
test real functions, converge after >1 steps More... | |
bool | realvec0 () |
test real vectors, converge on zeroth step More... | |
bool | realvec1 () |
test real vectors, converge after 1 step More... | |
bool | realvec2 () |
test real vectors, converge after >1 steps More... | |
static std::complex< double > | zmagfunc (const Vector< double, 3 > &pt) |
Variables | |
const int | NTESTS = 12 |
test functions: true for success, false for failure More... | |
World * | worldptr |
pointer to the world More... | |
typedef bool(* testptr) (void) |
function pointer typedef (for making an array)
bool cplxfunc0 | ( | ) |
test complex functions, converge after 0 steps
References b, madness::copy(), madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, madness::FunctionSpace< T, NDIM >::norm(), worldptr, and zmagfunc().
Referenced by main().
bool cplxfunc1 | ( | ) |
test complex functions, converge after 1 step
References b, madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, madness::FunctionSpace< T, NDIM >::norm(), madness::Function< T, NDIM >::truncate(), worldptr, and zmagfunc().
Referenced by main().
bool cplxfunc2 | ( | ) |
test complex functions, converge after >1 steps
References madness::Function< T, NDIM >::add_scalar(), b, madness::copy(), madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, madness::FunctionSpace< T, NDIM >::norm(), madness::Function< T, NDIM >::truncate(), madness::Function< T, NDIM >::unaryop(), worldptr, and zmagfunc().
Referenced by main().
bool cplxvec0 | ( | ) |
test complex vectors, converge after 0 steps
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
bool cplxvec1 | ( | ) |
test complex vectors, converge after 1 step
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
bool cplxvec2 | ( | ) |
test complex vectors, converge after >1 steps
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
References T(), and UNARY_OPTIMIZED_ITERATOR.
|
static |
Some functions for testing MADNESS Functions...
Referenced by realfunc0(), realfunc1(), and realfunc2().
int main | ( | int | argc, |
char ** | argv | ||
) |
main routine: execute the tests
References bufsize, SafeMPI::COMM_WORLD, cplxfunc0(), cplxfunc1(), cplxfunc2(), cplxvec0(), cplxvec1(), cplxvec2(), madness::finalize(), madness::initialize(), NTESTS, realfunc0(), realfunc1(), realfunc2(), realvec0(), realvec1(), realvec2(), madness::FunctionDefaults< NDIM >::set_cubic_cell(), madness::FunctionDefaults< NDIM >::set_k(), madness::FunctionDefaults< NDIM >::set_max_refine_level(), madness::FunctionDefaults< NDIM >::set_thresh(), madness::startup(), and worldptr.
bool realfunc0 | ( | ) |
test real functions, converge after 0 steps
References b, madness::copy(), madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, magfunc(), madness::FunctionSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
bool realfunc1 | ( | ) |
test real functions, converge after 1 step
References b, madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, magfunc(), madness::FunctionSpace< T, NDIM >::norm(), madness::Function< T, NDIM >::truncate(), and worldptr.
Referenced by main().
bool realfunc2 | ( | ) |
test real functions, converge after >1 steps
References madness::Function< T, NDIM >::add_scalar(), b, madness::Function< T, NDIM >::compress(), madness::copy(), madness::FunctionFactory< T, NDIM >::f(), madness::GMRES(), lo, magfunc(), madness::FunctionSpace< T, NDIM >::norm(), madness::Function< T, NDIM >::truncate(), madness::Function< T, NDIM >::unaryop(), and worldptr.
Referenced by main().
bool realvec0 | ( | ) |
test real vectors, converge on zeroth step
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
bool realvec1 | ( | ) |
test real vectors, converge after 1 step
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
bool realvec2 | ( | ) |
test real vectors, converge after >1 steps
References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.
Referenced by main().
|
static |
Referenced by cplxfunc0(), cplxfunc1(), and cplxfunc2().
const int NTESTS = 12 |
test functions: true for success, false for failure
Referenced by main().
World* worldptr |
pointer to the world
Referenced by cplxfunc0(), cplxfunc1(), cplxfunc2(), cplxvec0(), cplxvec1(), cplxvec2(), main(), realfunc0(), realfunc1(), realfunc2(), realvec0(), realvec1(), and realvec2().