12 template <
typename ordinal_type,
typename value_type>
16 #ifdef STOKHOS_TEUCHOS_TIME_MONITOR
31 coordinate_bases[i]->getQuadPoints(2*(coordinate_bases[i]->order()),
37 quad_weights.resize(ntot);
38 quad_values.resize(ntot);
44 quad_points[cnt].resize(d);
46 quad_values[cnt].resize(sz);
48 quad_points[cnt][
j] = gp[
j][index[
j]];
49 quad_weights[cnt] *= gw[
j][index[
j]];
55 quad_values[cnt][k] *= gv[
j][index[
j]][term[
j]];
59 while (i < d-1 && index[i] == n[i]) {
70 template <
typename ordinal_type,
typename value_type>
74 #ifdef STOKHOS_TEUCHOS_TIME_MONITOR
89 coordinate_bases[i]->getQuadPoints(quad_order,
95 quad_weights.resize(ntot);
96 quad_values.resize(ntot);
102 quad_points[cnt].resize(d);
104 quad_values[cnt].resize(sz);
106 quad_points[cnt][
j] = gp[
j][index[
j]];
107 quad_weights[cnt] *= gw[
j][index[
j]];
113 quad_values[cnt][k] *= gv[
j][index[
j]][term[
j]];
117 while (i < d-1 && index[i] == n[i]) {
128 template <
typename ordinal_type,
typename value_type>
136 template <
typename ordinal_type,
typename value_type>
144 template <
typename ordinal_type,
typename value_type>
152 template <
typename ordinal_type,
typename value_type>
158 os <<
"Tensor Product Quadrature with " << nqp <<
" points:"
159 << std::endl <<
"Weight : Points" << std::endl;
161 os << i <<
": " << quad_weights[i] <<
" : ";
162 for (
ordinal_type j=0; j<static_cast<ordinal_type>(quad_points[i].size());
164 os << quad_points[i][
j] <<
" ";
167 os <<
"Basis values at quadrature points:" << std::endl;
169 os << i <<
" " <<
": ";
170 for (
ordinal_type j=0; j<static_cast<ordinal_type>(quad_values[i].size());
172 os << quad_values[i][
j] <<
" ";
#define TEUCHOS_FUNC_TIME_MONITOR(FUNCNAME)
SparseArrayIterator< index_iterator, value_iterator >::value_type index(const SparseArrayIterator< index_iterator, value_iterator > &it)
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getQuadPoints() const
Get quadrature points.
virtual const Teuchos::Array< value_type > & getQuadWeights() const
Get quadrature weights.
TensorProductQuadrature(const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis)
Constructor.
virtual const Teuchos::Array< Teuchos::Array< value_type > > & getBasisAtQuadPoints() const
Get values of basis at quadrature points.
Abstract base class for multivariate orthogonal polynomials generated from tensor products of univari...
void resize(size_type new_size, const value_type &x=value_type())
virtual std::ostream & print(std::ostream &os) const
Print quadrature data.