From 79acbab23d4b1a1fa43e0388e3e75fe166b0148c Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 19 Feb 2018 10:31:50 +0100 Subject: [PATCH] Add forgotten file --- dune/perftool/sumfact/horizontaladd.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dune/perftool/sumfact/horizontaladd.hh diff --git a/dune/perftool/sumfact/horizontaladd.hh b/dune/perftool/sumfact/horizontaladd.hh new file mode 100644 index 00000000..f7303168 --- /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 -- GitLab