|
Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
42 #ifndef STOKHOS_GS_REDUCED_PCE_BASIS_BASE_HPP
43 #define STOKHOS_GS_REDUCED_PCE_BASIS_BASE_HPP
68 template <
typename ordinal_type,
typename value_type>
141 virtual void print(std::ostream& os)
const;
153 bool transpose =
false)
const;
160 bool transpose =
false)
const;
Teuchos::ParameterList params
Algorithm parameters.
ordinal_type sz
Total size of basis.
virtual ordinal_type buildReducedBasis(ordinal_type max_p, value_type threshold, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &A, const Teuchos::SerialDenseMatrix< ordinal_type, value_type > &F, const Teuchos::Array< value_type > &weights, Teuchos::Array< Stokhos::MultiIndex< ordinal_type > > &terms_, Teuchos::Array< ordinal_type > &num_terms_, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Qp_, Teuchos::SerialDenseMatrix< ordinal_type, value_type > &Q_)=0
Build the reduced basis, parameterized by total order max_p.
Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > pce_basis
Original pce basis.
virtual void evaluateBases(const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const
Evaluate basis polynomials at given point point.
Teuchos::Array< ordinal_type > num_terms
Number of terms up to each order.
value_type rank_threshold
Rank threshold.
std::string name
Name of basis.
virtual ~GSReducedPCEBasisBase()
Destructor.
SDM Qp
Coefficients of transformed basis in original basis.
bool verbose
Whether to print a bunch of stuff out.
Teuchos::SerialDenseMatrix< ordinal_type, value_type > SDM
Stokhos::CompletePolynomialBasisUtils< ordinal_type, value_type > CPBUtils
Abstract base class for quadrature methods.
virtual ordinal_type size() const
Return total size of basis.
Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > reduced_quad
Reduced quadrature object.
void setup(ordinal_type p, const Teuchos::Array< Stokhos::OrthogPolyApprox< ordinal_type, value_type > > &pce, const Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > &quad)
ordinal_type p
Total order of basis.
SDM Q
Values of transformed basis at quadrature points.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeTripleProductTensor() const
Compute triple product tensor.
Teuchos::Array< value_type > norms
Norms.
ordinal_type order() const
Return order of basis.
Top-level namespace for Stokhos classes and functions.
virtual value_type evaluateZero(ordinal_type i) const
Evaluate basis polynomial i at zero.
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
std::string orthogonalization_method
Orthogonalization method.
virtual void transformToOriginalBasis(const value_type *in, value_type *out, ordinal_type ncol=1, bool transpose=false) const
Transform coefficients to original basis from this basis.
virtual void print(std::ostream &os) const
Print basis to stream os.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeLinearTripleProductTensor() const
Compute linear triple product tensor where k = 0,1,..,d.
virtual void transformFromOriginalBasis(const value_type *in, value_type *out, ordinal_type ncol=1, bool transpose=false) const
Transform coefficients from original basis to this basis.
Teuchos::Array< Stokhos::MultiIndex< ordinal_type > > terms
2-D array of basis terms
Teuchos::SerialDenseVector< ordinal_type, value_type > SDV
ordinal_type d
Total dimension of basis.
GSReducedPCEBasisBase(ordinal_type p, const Teuchos::Array< Stokhos::OrthogPolyApprox< ordinal_type, value_type > > &pce, const Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > &quad, const Teuchos::ParameterList ¶ms=Teuchos::ParameterList())
Constructor.
virtual Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > getReducedQuadrature() const
Get reduced quadrature object.
ordinal_type pce_sz
Size of original pce basis.
GSReducedPCEBasisBase & operator=(const GSReducedPCEBasisBase &b)
virtual const Teuchos::Array< value_type > & norm_squared() const
Return array storing norm-squared of each basis polynomial.
Utilities for indexing a multi-variate complete polynomial basis.
Abstract base class for reduced basis strategies built from polynomial chaos expansions in some other...
ordinal_type dimension() const
Return dimension of basis.
Teuchos::BLAS< ordinal_type, value_type > blas