10 template <
typename ordinal_type,
typename value_type>
16 : quad_points(points),
23 (*qv)[i].resize(basis->size());
24 basis->evaluateBases((*points)[i], (*qv)[i]);
29 template <
typename ordinal_type,
typename value_type>
35 : quad_points(points),
36 quad_weights(weights),
41 template <
typename ordinal_type,
typename value_type>
49 template <
typename ordinal_type,
typename value_type>
57 template <
typename ordinal_type,
typename value_type>
65 template <
typename ordinal_type,
typename value_type>
71 os <<
"Sparse Grid Quadrature with " << nqp <<
" points:"
72 << std::endl <<
"Weight : Points" << std::endl;
74 os << i <<
": " << (*quad_weights)[i] <<
" : ";
76 j<static_cast<ordinal_type>((*quad_points)[i].size());
78 os << (*quad_points)[i][
j] <<
" ";
81 os <<
"Basis values at quadrature points:" << std::endl;
83 os << i <<
" " <<
": ";
85 j<static_cast<ordinal_type>((*quad_values)[i].size());
87 os << (*quad_values)[i][
j] <<
" ";
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getQuadPoints() const
Get quadrature points.
Teuchos::RCP< const Teuchos::Array< Teuchos::Array< value_type > > > quad_values
Quadrature values.
Abstract base class for multivariate orthogonal polynomials.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual std::ostream & print(std::ostream &os) const
Print quadrature data.
virtual const Teuchos::Array< value_type > & getQuadWeights() const
Get quadrature weights.
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getBasisAtQuadPoints() const
Get values of basis at quadrature points.
UserDefinedQuadrature(const Teuchos::RCP< const OrthogPolyBasis< ordinal_type, value_type > > &basis, const Teuchos::RCP< const Teuchos::Array< Teuchos::Array< value_type > > > &points, const Teuchos::RCP< const Teuchos::Array< value_type > > &weights)
Constructor.