49 template <
typename ordinal_type,
typename value_type>
54 reduction_method(params.get(
"Reduced Basis Method",
55 "Monomial Proj Gram-Schmidt"))
59 template <
typename ordinal_type,
typename value_type>
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")
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...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
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...
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...
Generate a basis from a given set of PCE expansions that is orthogonal with respect to the product me...