File: manipulating_parametric_batches.cpp

package info (click to toggle)
xsimd 14.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,256 kB
  • sloc: cpp: 41,584; sh: 547; makefile: 190; python: 117
file content (8 lines) | stat: -rw-r--r-- 185 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#include "xsimd/xsimd.hpp"

namespace xs = xsimd;
template <class T, class Arch>
xs::batch<T, Arch> mean(xs::batch<T, Arch> lhs, xs::batch<T, Arch> rhs)
{
    return (lhs + rhs) / 2;
}