template<typename ct, int dim>
class Dune::QuadraturePoint< ct, dim >
Single evaluation point in a quadrature rule.
A quadrature point is a single (position, weight)
pair used to evaluate a function at a position with a relative weight.
- Template Parameters
-
ct | Number type used for both coordinates and the weights |
dim | Dimension of the integration domain |
template<typename ct , int dim>
template<std::size_t index, std::enable_if_t<(index<=1), int > = 0>
Tuple like accessor for contents of a quadrature point.
This function is used by the compiler to generate structured binding for the (position, weight) pair. Thus, the snippet
Single evaluation point in a quadrature rule.
Definition quadraturerules.hh:66
const Vector & position() const
return local coordinates of integration point i
Definition quadraturerules.hh:82
const ct & weight() const
return weight associated with integration point i
Definition quadraturerules.hh:88
is equivalent to
- Template Parameters
-
index | Positional argument of the quadrature point contents |
- Returns
- Position (
index==0
) or weight (index==1
).