Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Stokhos::JacobiTester Class Reference

Public Member Functions

 JacobiTester (int quadOrder)
 
bool testInnerProduct (double alpha, double beta, int nMax) const
 

Private Attributes

RCP< Quadrature< int, double > > quad_
 

Detailed Description

Definition at line 31 of file Stokhos_JacobiBasisUnitTest.cpp.

Constructor & Destructor Documentation

Stokhos::JacobiTester::JacobiTester ( int  quadOrder)
inline

Definition at line 35 of file Stokhos_JacobiBasisUnitTest.cpp.

Member Function Documentation

bool Stokhos::JacobiTester::testInnerProduct ( double  alpha,
double  beta,
int  nMax 
) const
inline

Compute the inner product

\[ \int_{-1}^1 (1-x)^\alpha (1+x)^\beta P_n^{(\alpha,\beta)}(x) P_m^{(\alpha,\beta)}(x) \, dx \]

using Gauss-Legendre quadrature and compare to the exact solution.

Note: the gamma function appearing in the exact solution is computed by the function tgamma(x), not the more logical gamma(x).

Definition at line 61 of file Stokhos_JacobiBasisUnitTest.cpp.

Member Data Documentation

RCP<Quadrature<int, double> > Stokhos::JacobiTester::quad_
private

Definition at line 111 of file Stokhos_JacobiBasisUnitTest.cpp.


The documentation for this class was generated from the following file: