42 #include "Teuchos_TestForException.hpp" 49 template <
typename ordinal_type,
typename value_type>
52 const Teuchos::ParameterList& params_) :
54 reduction_method(params.get(
"Reduced Basis Method",
55 "Monomial Proj Gram-Schmidt"))
59 template <
typename ordinal_type,
typename value_type>
60 Teuchos::RCP<Stokhos::ReducedPCEBasis<ordinal_type, value_type> >
69 Teuchos::RCP<Stokhos::ReducedPCEBasis<ordinal_type, value_type> > red_basis;
71 if (reduction_method ==
"Monomial Proj Gram-Schmidt")
74 else if (reduction_method ==
"Monomial Proj Gram-Schmidt2")
77 else if (reduction_method ==
"Monomial Gram-Schmidt")
80 else if (reduction_method ==
"Product Lanczos")
83 else if (reduction_method ==
"Product Lanczos Gram-Schmidt")
87 TEUCHOS_TEST_FOR_EXCEPTION(
88 true, std::logic_error,
89 "Invalid reduced basis method " << reduction_method);
ReducedBasisFactory(const Teuchos::ParameterList ¶ms)
Constructor.
Data structure storing a sparse 3-tensor C(i,j,k) in a a compressed format.
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
Abstract base class for quadrature methods.
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
virtual Teuchos::RCP< Stokhos::ReducedPCEBasis< ordinal_type, value_type > > createReducedBasis(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
Get reduced quadrature object.
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...