Function Dune::GDT::l2_norm

Function template Dune::GDT::l2_norm

template<class GridViewType, size_t r>
double Dune::GDT::l2_norm(const GridViewType &grid_view, const XT::Functions::GridFunctionInterface<XT::Grid::extract_entity_t<GridViewType>, r> &function, XT::Functions::GridFunction<XT::Grid::extract_entity_t<GridViewType>, r, r> weight = 1., const int over_integrate = 0)

Computes the (optionally weighted) L2 norm of a vector-valued grid function over the given grid view.

Function template Dune::GDT::l2_norm

template<class GridViewType>
double Dune::GDT::l2_norm(const GridViewType &grid_view, XT::Functions::GridFunction<XT::Grid::extract_entity_t<GridViewType>> function, XT::Functions::GridFunction<XT::Grid::extract_entity_t<GridViewType>> weight = 1., const int over_integrate = 0)

Computes the (optionally weighted) L2 norm of a scalar grid function over the given grid view.