Function Dune::XT::Grid::element_integral

template<class Element>
double Dune::XT::Grid::element_integral(const Element &element, std::function<double(const FieldVector<typename Element::Geometry::ctype, Element::dimension>&)> function, const int polynomial_order_of_the_function)

Computes the integral of a given function over a given element [uses double as FieldType].

template<class RangeType, class Element>
RangeType Dune::XT::Grid::element_integral(const Element &element, std::function<RangeType(const FieldVector<typename Element::Geometry::ctype, Element::dimension>&)> function, const int polynomial_order_of_the_function)

Computes the integral of a given function over a given element [most general variant].