18 namespace PseudoSpectralExpansionUnitTest {
22 template <
typename OrdinalType,
typename ValueType>
34 Stokhos::OrthogPolyApprox<OrdinalType,ValueType> x,
y,
u,
u2,
cx,
cu,
cu2,
sx,
su,
su2;
43 const OrdinalType d = 2;
44 const OrdinalType p = 7;
48 for (OrdinalType i=0; i<d; i++)
65 Cijk =
basis->computeTripleProductTensor();
88 for (OrdinalType i=0; i<d; i++) {
93 for (OrdinalType i=0; i<d; i++)
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > y
Teuchos::RCP< Stokhos::PseudoSpectralOrthogPolyExpansion< OrdinalType, ValueType > > exp_linear
Multivariate orthogonal polynomial basis generated from a total order tensor product of univariate po...
Teuchos::RCP< const product_basis_type > basis
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > u
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > u2
Teuchos::RCP< const Stokhos::Quadrature< OrdinalType, ValueType > > quad
UnitTestSetup< int, double > setup
Teuchos::RCP< Stokhos::Sparse3Tensor< int, double > > Cijk
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > sx
static int runUnitTestsFromMain(int argc, char *argv[])
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > su
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
void reset(const Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > &new_basis, ordinal_type sz=0)
Reset to a new basis.
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > cx
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > cu
int main(int argc, char **argv)
Teuchos::RCP< Stokhos::Sparse3Tensor< int, double > > Cijk_linear
Teuchos::RCP< const Stokhos::PseudoSpectralOperator< OrdinalType, ValueType > > ps_op
Stokhos::TotalOrderBasis< OrdinalType, ValueType > product_basis_type
Teuchos::RCP< Stokhos::PseudoSpectralOrthogPolyExpansion< OrdinalType, ValueType > > exp
An operator for building pseudo-spectral coefficients using an arbitrary quadrature rule...
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > su2
Defines quadrature for a tensor product basis by tensor products of 1-D quadrature rules...
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > cu2
Stokhos::OrthogPolyApprox< OrdinalType, ValueType > x
reference term(ordinal_type dimension, ordinal_type order)
Get coefficient term for given dimension and order.