Commit 73edbd97 authored by Martin Reinecke's avatar Martin Reinecke

add accumulate() function for completeness

parent 9d53de33
......@@ -195,6 +195,8 @@ template<typename Op, typename T, size_t len> T reduce(const vtp<T, len> &v, Op
res = op(res, v[i]);
return res;
}
template<typename Op, typename T, size_t len> T accumulate(const vtp<T, len> &v, Op op)
{ return reduce(v, op); }
template<typename T> class pseudoscalar
{
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment