1 // { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
5 template <int rank, int dim> class Tensor;
10 explicit Tensor (const bool initialize = true);
11 Tensor (const Tensor<1,dim> &);
12 double values[(dim!=0) ? (dim) : 1];
15 Tensor<1,dim>::Tensor (const Tensor<1,dim> &p)
17 for (unsigned int i=0; i<dim; ++i)
18 values[i] = p.values[i];
21 class KellyErrorEstimator
25 std::vector<std::vector<std::vector<Tensor<1,dim> > > > psi;
26 PerThreadData (const unsigned int n_solution_vectors,
27 const unsigned int n_components,
28 const unsigned int n_q_points);
32 KellyErrorEstimator<dim>::PerThreadData::
33 PerThreadData (const unsigned int n_solution_vectors,
34 const unsigned int n_components,
35 const unsigned int n_q_points)
37 for (unsigned int i=0; i<n_solution_vectors; ++i)
38 for (unsigned int qp=0;qp<n_q_points;++qp)
39 psi[i][qp].resize(n_components);
41 template class KellyErrorEstimator<3>;