42 #ifndef STOKHOS_STIELTJESBASIS_HPP
43 #define STOKHOS_STIELTJESBASIS_HPP
57 template <
typename ordinal_type,
typename value_type,
typename func_type>
120 virtual void setup();
Teuchos::Array< value_type > delta
Recurrence coefficients.
StieltjesBasis(ordinal_type p, const Teuchos::RCP< const func_type > &func, const Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > &quad, bool use_pce_quad_points, bool normalize=false)
Constructor.
Implementation of OneDOrthogPolyBasis based on the general three-term recurrence relationship: for ...
virtual void getQuadPoints(ordinal_type quad_order, Teuchos::Array< value_type > &points, Teuchos::Array< value_type > &weights, Teuchos::Array< Teuchos::Array< value_type > > &values) const
Get Gauss quadrature points, weights, and values of basis at points.
StieltjesBasis & operator=(const StieltjesBasis &b)
const Teuchos::Array< Teuchos::Array< value_type > > & basis_values
Values of PCE basis functions at quadrature points.
Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > quad
Quadrature object.
const Teuchos::Array< value_type > & pce_weights
PCE quadrature weights.
Teuchos::RCP< const func_type > func
PC expansion.
Teuchos::Array< Teuchos::Array< value_type > > phi_vals
Values of generated polynomials at PCE quadrature points.
Teuchos::Array< value_type > beta
Recurrence coefficients.
Teuchos::Array< value_type > alpha
Recurrence coefficients.
void stieltjes(ordinal_type nstart, ordinal_type nfinish, const Teuchos::Array< value_type > &weights, const Teuchos::Array< value_type > &points, Teuchos::Array< value_type > &a, Teuchos::Array< value_type > &b, Teuchos::Array< value_type > &nrm, Teuchos::Array< Teuchos::Array< value_type > > &phi_vals) const
Compute 3-term recurrence using Stieljtes procedure.
Generates three-term recurrence using the Discretized Stieltjes procedure applied to a functional map...
virtual void setup()
Setup basis after computing recurrence coefficients.
~StieltjesBasis()
Destructor.
Abstract base class for quadrature methods.
Teuchos::Array< value_type > func_vals
Values of func at quadrature points.
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.
void integrateBasisSquared(ordinal_type k, const Teuchos::Array< value_type > &a, const Teuchos::Array< value_type > &b, const Teuchos::Array< value_type > &weights, const Teuchos::Array< value_type > &points, Teuchos::Array< Teuchos::Array< value_type > > &phi_vals, value_type &val1, value_type &val2) const
Compute and .
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.
ordinal_type p
Order of basis.
Teuchos::Array< value_type > gamma
Recurrence coefficients.
bool normalize
Normalize basis.
void evaluateRecurrence(ordinal_type k, const Teuchos::Array< value_type > &a, const Teuchos::Array< value_type > &b, const Teuchos::Array< value_type > &points, Teuchos::Array< Teuchos::Array< value_type > > &values) const
Evaluate polynomials via 3-term recurrence.
bool use_pce_quad_points
Use underlying pce's quadrature data.