10 template <
typename ordinal_type,
typename value_type>
16 alphaIndex_(alphaIndex),
21 #ifdef HAVE_STOKHOS_DAKOTA
26 template <
typename ordinal_type,
typename value_type>
30 alphaIndex_(basis.alphaIndex_),
31 betaIndex_(basis.betaIndex_)
41 template <
typename ordinal_type,
typename value_type>
47 template <
typename ordinal_type,
typename value_type>
68 alpha[0] = getB(0)/getA(0);
70 delta[0] = getC(0)/getA(0);
75 alpha[i] = getB(i)/getA(i);
76 beta[i] = getD(i)/getA(i);
77 delta[i] = getC(i)/getA(i);
85 template <
typename ordinal_type,
typename value_type>
88 return 2*(n+1)*(n+alphaIndex_+betaIndex_+1)*(2*n+alphaIndex_+betaIndex_);
91 template <
typename ordinal_type,
typename value_type>
96 return -(2*n+a+b+1)*(a*a-b*b);
99 template <
typename ordinal_type,
typename value_type>
104 return poch3(2*n+a+b);
107 template <
typename ordinal_type,
typename value_type>
112 return 2*(n+a)*(n+b)*(2*n + a + b + 2);
115 template <
typename ordinal_type,
typename value_type>
118 return (m+2)*(m+1)*m;
121 template <
typename ordinal_type,
typename value_type>
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
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
value_type poch3(value_type x) const
virtual void setup()
Setup basis after computing recurrence coefficients.
JacobiBasis(ordinal_type p, value_type alphaIndex, value_type betaIndex, bool normalize=false, GrowthPolicy growth=SLOW_GROWTH)
Constructor.
~JacobiBasis()
Destructor.
value_type getA(int n) const
Teuchos::Array< value_type > gamma
Recurrence coefficients.
virtual void setSparseGridGrowthRule(LevelToOrderFnPtr ptr)
Set sparse grid rule.