diff --git a/dune/perftool/sumfact/horizontaladd.hh b/dune/perftool/sumfact/horizontaladd.hh new file mode 100644 index 0000000000000000000000000000000000000000..f7303168866428feca8a6a25dae66678e9f2c9d3 --- /dev/null +++ b/dune/perftool/sumfact/horizontaladd.hh @@ -0,0 +1,16 @@ +#ifndef DUNE_PERFTOOL_SUMFACT_HORIZONTALADD_HH +#define DUNE_PERFTOOL_SUMFACT_HORIZONTALADD_HH + +template<class V> +double horizontal_add_lower(const V& x) +{ + return horizontal_add(x.get_low()); +} + +template<class V> +double horizontal_add_upper(const V& x) +{ + return horizontal_add(x.get_high()); +} + +#endif