42 #ifndef STOKHOS_PRODUCT_LANCZOS_GRAM_SCHMIDT_PCE_BASIS_HPP 43 #define STOKHOS_PRODUCT_LANCZOS_GRAM_SCHMIDT_PCE_BASIS_HPP 45 #include "Teuchos_RCP.hpp" 46 #include "Teuchos_Array.hpp" 47 #include "Teuchos_SerialDenseMatrix.hpp" 48 #include "Teuchos_SerialDenseVector.hpp" 49 #include "Teuchos_ParameterList.hpp" 69 template <
typename ordinal_type,
typename value_type>
85 const Teuchos::ParameterList&
params = Teuchos::ParameterList());
107 virtual const Teuchos::Array<value_type>&
norm_squared()
const;
120 Teuchos::RCP< Stokhos::Sparse3Tensor<ordinal_type, value_type> >
125 Teuchos::RCP< Stokhos::Sparse3Tensor<ordinal_type, value_type> >
137 const Teuchos::ArrayView<const value_type>& point,
138 Teuchos::Array<value_type>& basis_vals)
const;
141 virtual void print(std::ostream& os)
const;
144 virtual const std::string&
getName()
const;
156 bool transpose =
false)
const;
163 bool transpose =
false)
const;
166 virtual Teuchos::RCP<const Stokhos::Quadrature<ordinal_type, value_type> >
190 typedef Teuchos::SerialDenseVector<ordinal_type,value_type>
SDV;
191 typedef Teuchos::SerialDenseMatrix<ordinal_type,value_type>
SDM;
224 Teuchos::RCP<const Stokhos::Quadrature<ordinal_type, value_type> >
reduced_quad;
ordinal_type p
Total order of basis.
virtual const std::string & getName() const
Return string name of basis.
Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > reduced_quad
Reduced quadrature object.
ordinal_type pce_sz
Size of original pce basis.
Data structure storing a sparse 3-tensor C(i,j,k) in a a compressed format.
SDM Qp
Coefficients of transformed basis in original basis.
ordinal_type order() const
Return order of basis.
SDM Q
Values of transformed basis at quadrature points.
virtual ordinal_type size() const
Return total size of basis.
virtual Teuchos::RCP< const Stokhos::Quadrature< ordinal_type, value_type > > getReducedQuadrature() const
Get reduced quadrature object.
virtual value_type evaluateZero(ordinal_type i) const
Evaluate basis polynomial i at zero.
ordinal_type isInvariant(const Stokhos::OrthogPolyApprox< ordinal_type, value_type > &pce) const
std::string name
Name of basis.
ordinal_type sz
Total size of basis.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeTripleProductTensor() const
Compute triple product tensor.
Teuchos::ParameterList params
Algorithm parameters.
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
virtual void print(std::ostream &os) const
Print basis to stream os.
Abstract base class for quadrature methods.
Abstract base class for reduced basis strategies built from polynomial chaos expansions in some other...
Top-level namespace for Stokhos classes and functions.
virtual ~ProductLanczosGramSchmidtPCEBasis()
Destructor.
virtual void evaluateBases(const Teuchos::ArrayView< const value_type > &point, Teuchos::Array< value_type > &basis_vals) const
Evaluate basis polynomials at given point point.
ordinal_type d
Total dimension of basis.
Stokhos::OrthogPolyApprox< ordinal_type, value_type > tmp_pce
Temporary pce used in invariant subspace calculations.
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.
ProductLanczosGramSchmidtPCEBasis & operator=(const ProductLanczosGramSchmidtPCEBasis &)
ordinal_type dimension() const
Return dimension of basis.
Teuchos::Array< value_type > norms
Norms.
Teuchos::SerialDenseMatrix< ordinal_type, value_type > SDM
Teuchos::RCP< Stokhos::CompletePolynomialBasis< ordinal_type, value_type > > tensor_lanczos_basis
Product Lanczos basis.
virtual const Teuchos::Array< value_type > & norm_squared() const
Return array storing norm-squared of each basis polynomial.
ProductLanczosGramSchmidtPCEBasis(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::RCP< const Stokhos::Sparse3Tensor< ordinal_type, value_type > > &Cijk, const Teuchos::ParameterList ¶ms=Teuchos::ParameterList())
Constructor.
virtual Teuchos::RCP< Stokhos::Sparse3Tensor< ordinal_type, value_type > > computeLinearTripleProductTensor() const
Compute linear triple product tensor where k = 0,1,..,d.
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.
Teuchos::SerialDenseVector< ordinal_type, value_type > SDV