MADNESS  0.10.1
Classes | Typedefs | Functions | Variables
test_gmres.cc File Reference
#include <madness/mra/mra.h>
#include <madness/tensor/gmres.h>
Include dependency graph for test_gmres.cc:

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...
 
Worldworldptr
 pointer to the world More...
 

Typedef Documentation

◆ testptr

typedef bool(* testptr) (void)

function pointer typedef (for making an array)

Function Documentation

◆ cplxfunc0()

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().

◆ cplxfunc1()

bool cplxfunc1 ( )

◆ cplxfunc2()

bool cplxfunc2 ( )

◆ cplxvec0()

bool cplxvec0 ( )

test complex vectors, converge after 0 steps

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ cplxvec1()

bool cplxvec1 ( )

test complex vectors, converge after 1 step

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ cplxvec2()

bool cplxvec2 ( )

test complex vectors, converge after >1 steps

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ invert()

template<typename T >
static void invert ( const Key< 3 > &  key,
Tensor< T > &  t 
)
inlinestatic

References T(), and UNARY_OPTIMIZED_ITERATOR.

◆ magfunc()

static double magfunc ( const Vector< double, 3 > &  pt)
static

Some functions for testing MADNESS Functions...

Referenced by realfunc0(), realfunc1(), and realfunc2().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ realfunc0()

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().

◆ realfunc1()

bool realfunc1 ( )

◆ realfunc2()

bool realfunc2 ( )

◆ realvec0()

bool realvec0 ( )

test real vectors, converge on zeroth step

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ realvec1()

bool realvec1 ( )

test real vectors, converge after 1 step

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ realvec2()

bool realvec2 ( )

test real vectors, converge after >1 steps

References b, madness::GMRES(), lo, madness::VectorSpace< T, NDIM >::norm(), and worldptr.

Referenced by main().

◆ zmagfunc()

static std::complex<double> zmagfunc ( const Vector< double, 3 > &  pt)
static

Referenced by cplxfunc0(), cplxfunc1(), and cplxfunc2().

Variable Documentation

◆ NTESTS

const int NTESTS = 12

test functions: true for success, false for failure

Referenced by main().

◆ worldptr

World* worldptr