52 namespace TotalOrderBasisUnitTest {
55 template <
typename OrdinalType,
typename ValueType>
89 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
94 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
97 is_less = is_less && term[
j] <=
setup.p;
99 out <<
"passed" << std::endl;
101 out <<
"failed" << std::endl;
125 std::ostream_iterator<ordinal_type> out_iterator(out,
" ");
130 out <<
"term " << term <<
" <= " <<
setup.p <<
" : ";
133 is_less = is_less && term[
j] <=
j+1;
135 out <<
"passed" << std::endl;
137 out <<
"failed" << std::endl;
154 basis->computeTripleProductTensor();
170 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