20 namespace TotalOrderBasisUnitTest {
23 template <
typename OrdinalType,
typename ValueType>
57 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
62 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
65 is_less = is_less && term[
j] <=
setup.p;
67 out <<
"passed" << std::endl;
69 out <<
"failed" << std::endl;
93 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
98 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
101 is_less = is_less && term[
j] <=
j+1;
103 out <<
"passed" << std::endl;
105 out <<
"failed" << std::endl;
122 basis->computeTripleProductTensor();
138 basis->computeLinearTripleProductTensor();
ordinal_type n_choose_k(const ordinal_type &n, const ordinal_type &k)
Compute bionomial coefficient (n ; k) = n!/( k! (n-k)! )
Multivariate orthogonal polynomial basis generated from a total order tensor product of univariate po...
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)
TEUCHOS_UNIT_TEST(LexicographicTreeCoefficients, Isotropic)
static int runUnitTestsFromMain(int argc, char *argv[])
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Legendre polynomial basis.
int main(int argc, char **argv)
#define TEUCHOS_TEST_EQUALITY(v1, v2, out, success)
UnitTestSetup< ordinal_type, value_type > setup