HermiteUnitTests.hpp File Reference

#include "Sacado.hpp"
#include "Sacado_Random.hpp"
#include "Sacado_PCE_OrthogPoly.hpp"
#include "Stokhos.hpp"
#include <cppunit/extensions/HelperMacros.h>

Include dependency graph for HermiteUnitTests.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HermiteUnitTest

Defines

#define BINARY_OP_TEST(TESTNAME, OP)
#define RELOP_TEST(TESTNAME, OP)
#define BINARY_FUNC_TEST(TESTNAME, FUNC)
#define UNARY_OP_TEST(TESTNAME, OP)
#define UNARY_FUNC_TEST(TESTNAME, FUNC)
#define UNARY_ASSIGNOP_TEST(TESTNAME, OP)

Typedefs

typedef Stokhos::HermiteBasis<
int, double > 
basis_type
typedef Stokhos::DerivOrthogPolyExpansion<
int, double > 
exp_type
typedef Sacado::PCE::OrthogPoly<
double > 
pce_type


Define Documentation

#define BINARY_OP_TEST ( TESTNAME,
OP   ) 

Value:

void TESTNAME () {        \
    cc = ac OP bc;        \
    c = a OP b;         \
    comparePCEs(cc, c);       \
            \
    cc = ac OP b;       \
    c = a OP b;         \
    comparePCEs(cc, c);       \
            \
    cc = a OP bc;       \
    c = a OP b;         \
    comparePCEs(cc, c);       \
  }

Definition at line 48 of file HermiteUnitTests.hpp.

#define RELOP_TEST ( TESTNAME,
OP   ) 

Value:

void TESTNAME () {        \
    bool r1 = ac OP bc;       \
    bool r2 = a OP b;       \
    CPPUNIT_ASSERT(r1 == r2);     \
            \
    r1 = ac OP b;             \
    r2 = a OP b;              \
    CPPUNIT_ASSERT(r1 == r2);     \
            \
    r1 = a OP bc;             \
    r2 = a OP b;              \
    CPPUNIT_ASSERT(r1 == r2);     \
  }

Definition at line 63 of file HermiteUnitTests.hpp.

#define BINARY_FUNC_TEST ( TESTNAME,
FUNC   ) 

Value:

void TESTNAME () {      \
    cc = FUNC (ac, bc);     \
    c = FUNC (a, b);      \
    comparePCEs(cc, c);     \
              \
    cc = FUNC (ac, b);      \
    c = FUNC (a, b);      \
    comparePCEs(cc, c);     \
              \
    cc = FUNC (a, bc);      \
    c = FUNC (a, b);      \
    comparePCEs(cc, c);     \
  }

Definition at line 78 of file HermiteUnitTests.hpp.

#define UNARY_OP_TEST ( TESTNAME,
OP   ) 

Value:

void TESTNAME () {          \
    cc = OP ac;           \
    c = OP a;           \
    comparePCEs(cc, c);         \
  }

Definition at line 93 of file HermiteUnitTests.hpp.

#define UNARY_FUNC_TEST ( TESTNAME,
FUNC   ) 

Value:

void TESTNAME () {          \
    cc = FUNC (ac);         \
    c = FUNC (a);         \
    comparePCEs(cc, c);         \
  }

Definition at line 100 of file HermiteUnitTests.hpp.

#define UNARY_ASSIGNOP_TEST ( TESTNAME,
OP   ) 

Value:

void TESTNAME () {          \
    cc OP ac;           \
    c OP a;           \
    comparePCEs(cc, c);         \
              \
    cc OP a;            \
    c OP a;           \
    comparePCEs(cc, c);         \
  }

Definition at line 107 of file HermiteUnitTests.hpp.


Typedef Documentation

typedef Stokhos::HermiteBasis<int,double> basis_type

Definition at line 41 of file HermiteUnitTests.hpp.

typedef Stokhos::DerivOrthogPolyExpansion<int,double> exp_type

Definition at line 42 of file HermiteUnitTests.hpp.

typedef Sacado::PCE::OrthogPoly<double> pce_type

Definition at line 43 of file HermiteUnitTests.hpp.


Generated on Wed May 12 21:39:43 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7