14 template <
typename ordinal_type,
typename value_type>
19 ordinal_type new_order,
bool use_pce_qp,
bool normalize) :
43 quad->getQuadPoints();
50 (*new_points)[i].resize(new_dim);
55 new_coordinate_bases[k]->getQuadPoints(new_order+1, st_points, st_weights,
59 (*new_points)[i][k] = st_points[i];
79 template <
typename ordinal_type,
typename value_type>
87 template <
typename ordinal_type,
typename value_type>
95 template <
typename ordinal_type,
typename value_type>
104 if (new_pces.size() != pces.size())
105 new_pces.resize(dim);
108 p_tensor.
term(k, 0) = pces[k].mean();
109 p_tensor.
term(k, 1) = 1.0;
110 new_pces[k].reset(gs_basis);
111 gs_basis->transformCoeffs(p_tensor.
coeff(), new_pces[k].coeff());
Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > tensor_basis
Reduced tensor basis.
Teuchos::RCP< const Quadrature< ordinal_type, value_type > > quad
Quadrature object for original basis.
Teuchos::RCP< UserDefinedQuadrature< ordinal_type, value_type > > gs_quad
Reduced quadrature.
pointer coeff()
Return coefficient array.
StieltjesGramSchmidtBuilder(const Teuchos::RCP< const Quadrature< ordinal_type, value_type > > &quad, const Teuchos::Array< OrthogPolyApprox< ordinal_type, value_type > > &pces, ordinal_type new_order, bool use_pce_qp, bool normalize)
Constructor.
Generates three-term recurrence using the Discretized Stieltjes procedure applied to a polynomial cha...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Abstract base class for quadrature methods.
Transforms a non-orthogonal multivariate basis to an orthogonal one using the Gram-Schmit procedure...
Teuchos::RCP< Quadrature< ordinal_type, value_type > > getReducedQuadrature() const
Get reduced quadrature.
Multivariate orthogonal polynomial basis generated from a total-order complete-polynomial tensor prod...
void computeReducedPCEs(const Teuchos::Array< OrthogPolyApprox< ordinal_type, value_type > > &pces, Teuchos::Array< OrthogPolyApprox< ordinal_type, value_type > > &new_pces)
Get reduced PCEs.
Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > getReducedBasis() const
Get reduced basis.
Teuchos::RCP< GramSchmidtBasis< ordinal_type, value_type > > gs_basis
Reduced Gram-Schmidt basis.
reference term(ordinal_type dimension, ordinal_type order)
Get coefficient term for given dimension and order.