44 template <
typename ordinal_type,
typename value_type>
50 : quad_points(points),
57 (*qv)[i].resize(basis->size());
58 basis->evaluateBases((*points)[i], (*qv)[i]);
63 template <
typename ordinal_type,
typename value_type>
69 : quad_points(points),
70 quad_weights(weights),
75 template <
typename ordinal_type,
typename value_type>
83 template <
typename ordinal_type,
typename value_type>
91 template <
typename ordinal_type,
typename value_type>
99 template <
typename ordinal_type,
typename value_type>
105 os <<
"Sparse Grid Quadrature with " << nqp <<
" points:"
106 << std::endl <<
"Weight : Points" << std::endl;
108 os << i <<
": " << (*quad_weights)[i] <<
" : ";
110 j<static_cast<ordinal_type>((*quad_points)[i].size());
112 os << (*quad_points)[i][
j] <<
" ";
115 os <<
"Basis values at quadrature points:" << std::endl;
117 os << i <<
" " <<
": ";
119 j<static_cast<ordinal_type>((*quad_values)[i].size());
121 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.