54 namespace TensorProductBasisUnitTest {
57 template <
typename OrdinalType,
typename ValueType>
93 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
98 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
101 is_less = is_less && term[
j] <=
setup.p;
103 out <<
"passed" << std::endl;
105 out <<
"failed" << std::endl;
130 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
135 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
138 is_less = is_less && term[
j] <=
setup.p;
140 out <<
"passed" << std::endl;
142 out <<
"failed" << std::endl;
159 basis->computeTripleProductTensor();
174 basis->computeLinearTripleProductTensor();
TEUCHOS_UNIT_TEST(Coefficients, Isotropic)
bool testSparse3Tensor(const Stokhos::Sparse3Tensor< ordinal_type, scalar_type > &Cijk, const Stokhos::ProductBasis< ordinal_type, scalar_type > &basis, const scalar_type &sparse_tol, const scalar_type &rel_tol, const scalar_type &abs_tol, Teuchos::FancyOStream &out, bool linear=false)
static int runUnitTestsFromMain(int argc, char *argv[])
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
UnitTestSetup< ordinal_type, value_type > setup
Multivariate orthogonal polynomial basis generated from a tensor product of univariate polynomials...
Legendre polynomial basis.
int main(int argc, char **argv)
#define TEUCHOS_TEST_EQUALITY(v1, v2, out, success)