10 #ifdef HAVE_STOKHOS_DAKOTA
11 #include "sandia_rules.hpp"
15 template <
typename ordinal_type,
typename value_type>
21 #ifdef HAVE_STOKHOS_DAKOTA
26 template <
typename ordinal_type,
typename value_type>
31 isotropic(basis.isotropic)
35 template <
typename ordinal_type,
typename value_type>
41 template <
typename ordinal_type,
typename value_type>
49 #ifdef HAVE_STOKHOS_DAKOTA
70 num_points = (1 << (l+1)) - 1;
73 quad_points.
resize(num_points);
74 quad_weights.
resize(num_points);
75 quad_values.resize(num_points);
77 webbur::patterson_lookup(num_points, &quad_points[0], &quad_weights[0]);
80 quad_weights[i] *= 0.5;
81 quad_values[i].
resize(this->p+1);
82 this->evaluateBases(quad_points[i], quad_values[i]);
87 true, std::logic_error,
"Clenshaw-Curtis requires TriKota to be enabled!");
91 template <
typename ordinal_type,
typename value_type>
104 template <
typename ordinal_type,
typename value_type>
113 template <
typename ordinal_type,
typename value_type>
124 return (3 << (n-1)) - 1;
127 template <
typename ordinal_type,
typename value_type>
virtual Teuchos::RCP< OneDOrthogPolyBasis< ordinal_type, value_type > > cloneWithOrder(ordinal_type p) const
Clone this object with the option of building a higher order basis.
virtual ordinal_type pointGrowth(ordinal_type n) const
Evaluate point growth rule for Smolyak-type bases.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
virtual ordinal_type quadDegreeOfExactness(ordinal_type n) const
virtual ordinal_type coefficientGrowth(ordinal_type n) const
Evaluate coefficient growth rule for Smolyak-type bases.
Legendre polynomial basis using Gauss-Patterson quadrature points.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
KOKKOS_INLINE_FUNCTION PCE< Storage > ceil(const PCE< Storage > &a)
~GaussPattersonLegendreBasis()
Destructor.
void resize(size_type new_size, const value_type &x=value_type())
Legendre polynomial basis.
GaussPattersonLegendreBasis(ordinal_type p, bool normalize=false, bool isotropic=false)
Constructor.
virtual void setSparseGridGrowthRule(LevelToOrderFnPtr ptr)
Set sparse grid rule.
KOKKOS_INLINE_FUNCTION PCE< Storage > log(const PCE< Storage > &a)
virtual void getQuadPoints(ordinal_type quad_order, Teuchos::Array< value_type > &points, Teuchos::Array< value_type > &weights, Teuchos::Array< Teuchos::Array< value_type > > &values) const
Compute quadrature points, weights, and values of basis polynomials at given set of points points...