MADNESS 0.10.1
test_gmres.cc File Reference
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)

Functions

bool cplxfunc0 ()
 test complex functions, converge after 0 steps
bool cplxfunc1 ()
 test complex functions, converge after 1 step
bool cplxfunc2 ()
 test complex functions, converge after >1 steps
bool cplxvec0 ()
 test complex vectors, converge after 0 steps
bool cplxvec1 ()
 test complex vectors, converge after 1 step
bool cplxvec2 ()
 test complex vectors, converge after >1 steps
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...
int main (int argc, char **argv)
 main routine: execute the tests
bool realfunc0 ()
 test real functions, converge after 0 steps
bool realfunc1 ()
 test real functions, converge after 1 step
bool realfunc2 ()
 test real functions, converge after >1 steps
bool realvec0 ()
 test real vectors, converge on zeroth step
bool realvec1 ()
 test real vectors, converge after 1 step
bool realvec2 ()
 test real vectors, converge after >1 steps
static std::complex< double > zmagfunc (const Vector< double, 3 > &pt)

Variables

const int NTESTS = 12
 test functions: true for success, false for failure
World * worldptr
 pointer to the world

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

◆ 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>
void invert ( const Key< 3 > & key,
Tensor< T > & t )
inlinestatic

References UNARY_OPTIMIZED_ITERATOR.

Referenced by cplxfunc2(), and realfunc2().

◆ magfunc()

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

Some functions for testing MADNESS Functions...

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

◆ main()

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

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

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