20 namespace TensorProductBasisUnitTest {
23 template <
typename OrdinalType,
typename ValueType>
59 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
64 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
67 is_less = is_less && term[
j] <=
setup.p;
69 out <<
"passed" << std::endl;
71 out <<
"failed" << std::endl;
96 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
101 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
104 is_less = is_less && term[
j] <=
setup.p;
106 out <<
"passed" << std::endl;
108 out <<
"failed" << std::endl;
125 basis->computeTripleProductTensor();
140 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)