Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_JacobiBasis.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_JACOBIBASIS_HPP
11 #define STOKHOS_JACOBIBASIS_HPP
12 
14 
15 namespace Stokhos {
16 
18 
59  template <typename ordinal_type, typename value_type>
60  class JacobiBasis :
61  public RecurrenceBasis<ordinal_type, value_type> {
62  public:
63 
65 
70  value_type alphaIndex,
71  value_type betaIndex, bool normalize = false,
73 
75  ~JacobiBasis();
76 
78 
79 
91 
93 
94  protected:
95 
97 
98 
100  virtual bool
106 
108 
110  JacobiBasis(ordinal_type p, const JacobiBasis& basis);
111 
112  private:
113 
114  value_type getA(int n) const ;
115  value_type getB(int n) const ;
116  value_type getC(int n) const ;
117  value_type getD(int n) const ;
118  value_type poch3(value_type x) const ;
119 
120  // Prohibit copying
121  JacobiBasis(const JacobiBasis&);
122 
123  // Prohibit Assignment
124  JacobiBasis& operator=(const JacobiBasis& b);
125 
128 
129  }; // class JacobiBasis
130 
131 } // Namespace Stokhos
132 
133 // Include template definitions
135 
136 #endif
Teuchos::Array< value_type > delta
Recurrence coefficients.
Implementation of OneDOrthogPolyBasis based on the general three-term recurrence relationship: for ...
value_type getD(int n) const
virtual bool computeRecurrenceCoefficients(ordinal_type n, Teuchos::Array< value_type > &alpha, Teuchos::Array< value_type > &beta, Teuchos::Array< value_type > &delta, Teuchos::Array< value_type > &gamma) const
Compute recurrence coefficients.
Teuchos::Array< value_type > beta
Recurrence coefficients.
GrowthPolicy
Enumerated type for determining Smolyak growth policies.
value_type getB(int n) const
Teuchos::Array< value_type > alpha
Recurrence coefficients.
virtual Teuchos::RCP< OneDOrthogPolyBasis< ordinal_type, value_type > > cloneWithOrder(ordinal_type p) const
Clone this object with the option of building a higher order basis.
value_type getC(int n) const
Jacobi polynomial basis.
value_type poch3(value_type x) const
JacobiBasis(ordinal_type p, value_type alphaIndex, value_type betaIndex, bool normalize=false, GrowthPolicy growth=SLOW_GROWTH)
Constructor.
JacobiBasis & operator=(const JacobiBasis &b)
ordinal_type p
Order of basis.
value_type getA(int n) const
Teuchos::Array< value_type > gamma
Recurrence coefficients.
GrowthPolicy growth
Smolyak growth policy.
int n