Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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 65 of file Stokhos_JacobiBasisUnitTest.cpp.

Constructor & Destructor Documentation

◆ JacobiTester()

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

Definition at line 69 of file Stokhos_JacobiBasisUnitTest.cpp.

Member Function Documentation

◆ testInnerProduct()

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 95 of file Stokhos_JacobiBasisUnitTest.cpp.

Member Data Documentation

◆ quad_

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

Definition at line 145 of file Stokhos_JacobiBasisUnitTest.cpp.


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