17 template <
typename ordinal_type,
typename value_type>
22 reduction_method(params.get(
"Reduced Basis Method",
23 "Monomial Proj Gram-Schmidt"))
27 template <
typename ordinal_type,
typename value_type>
39 if (reduction_method ==
"Monomial Proj Gram-Schmidt")
42 else if (reduction_method ==
"Monomial Proj Gram-Schmidt2")
45 else if (reduction_method ==
"Monomial Gram-Schmidt")
48 else if (reduction_method ==
"Product Lanczos")
51 else if (reduction_method ==
"Product Lanczos Gram-Schmidt")
56 true, std::logic_error,
57 "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...