* dimension zero contains no information. The main purpose of these
* formulæ is their use in QProjector, which will create a useful
* formula of dimension one out of them.
- *
+ *
* <h3>Mathematical background</h3>
*
* For each quadrature formula we denote by <tt>m</tt>, the maximal
* then be a face quadrature.
*/
typedef Quadrature<dim-1> SubQuadrature;
-
+
/**
* @deprecated Use size()
* instead.
*/
Quadrature (const SubQuadrature &,
const Quadrature<1> &);
-
+
/**
* Build this quadrature formula
* as the <tt>dim</tt>-fold
* Copy constructor.
*/
Quadrature (const Quadrature<dim> &q);
-
+
/**
* Construct a quadrature formula
* from given vectors of
* size.
*/
Quadrature& operator = (const Quadrature<dim>&);
-
+
/**
* Virtual destructor.
*/
* Number of quadrature points.
*/
unsigned int size () const;
-
+
/**
* Return the <tt>i</tt>th quadrature
* point.
* points.
*/
const std::vector<Point<dim> > & get_points () const;
-
+
/**
* Return the weight of the <tt>i</tt>th
* quadrature point.
* quadrature rule.
*/
QAnisotropic(const Quadrature<1>& qx);
-
+
/**
* Constructor for a
* two-dimensional formula.
*/
QAnisotropic(const Quadrature<1>& qx,
const Quadrature<1>& qy);
-
+
/**
* Constructor for a
* three-dimensional formula.
+template <int dim>
+inline
+const std::vector<Point<dim> > &
+Quadrature<dim>::get_points () const
+{
+ Assert (dim > 0, ExcInternalError());
+ return quadrature_points;
+}
+
+
+
+template <int dim>
+inline
+const std::vector<double> &
+Quadrature<dim>::get_weights () const
+{
+ return weights;
+}
+
+
+
+
/* -------------- declaration of explicit specializations ------------- */
template <>
Quadrature<1>::Quadrature (const Quadrature<0> &);
-template <>
-const std::vector<Point<0> > & Quadrature<0>::get_points () const;
-
#endif // DOXYGEN
DEAL_II_NAMESPACE_CLOSE
-template <>
-const std::vector<Point<0> > &
-Quadrature<0>::get_points () const
-{
- Assert (false, ExcInternalError());
- return quadrature_points;
-}
-
-
-
-template <int dim>
-const std::vector<Point<dim> > &
-Quadrature<dim>::get_points () const
-{
- return quadrature_points;
-}
-
-
-
-template <int dim>
-const std::vector<double> &
-Quadrature<dim>::get_weights () const
-{
- return weights;
-}
-
-
-
template <int dim>
unsigned int
Quadrature<dim>::memory_consumption () const