48 template <
typename ordinal_type,
typename value_type>
53 ordinal_type new_order,
bool use_pce_qp,
bool normalize) :
77 quad->getQuadPoints();
84 (*new_points)[i].resize(new_dim);
89 new_coordinate_bases[k]->getQuadPoints(new_order+1, st_points, st_weights,
93 (*new_points)[i][k] = st_points[i];
113 template <
typename ordinal_type,
typename value_type>
121 template <
typename ordinal_type,
typename value_type>
129 template <
typename ordinal_type,
typename value_type>
138 if (new_pces.size() != pces.size())
139 new_pces.resize(dim);
142 p_tensor.
term(k, 0) = pces[k].mean();
143 p_tensor.
term(k, 1) = 1.0;
144 new_pces[k].reset(gs_basis);
145 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.