1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00

switched to vec* in Reduce

This commit is contained in:
nmeyer-ur 2020-05-12 20:41:14 +02:00
parent 0009b5cee8
commit d15ccad8a7

View File

@ -698,7 +698,8 @@ struct Reduce{
//Complex float Reduce //Complex float Reduce
template <> template <>
// inline Grid::ComplexF Reduce<Grid::ComplexF, svfloat32_t>::operator()(svfloat32_t in){ // inline Grid::ComplexF Reduce<Grid::ComplexF, svfloat32_t>::operator()(svfloat32_t in){
inline Grid::ComplexF Reduce<Grid::ComplexF, __SVFloat32_t>::operator()(__SVFloat32_t in){ //inline Grid::ComplexF Reduce<Grid::ComplexF, __SVFloat32_t>::operator()(__SVFloat32_t in){
inline Grid::ComplexF Reduce<Grid::ComplexF, vecf>::operator()(vecf in){
pred pg_even = acle<float>::pg_even(); pred pg_even = acle<float>::pg_even();
pred pg_odd = acle<float>::pg_odd(); pred pg_odd = acle<float>::pg_odd();
float a = svred(pg_even, in); float a = svred(pg_even, in);
@ -708,14 +709,16 @@ inline Grid::ComplexF Reduce<Grid::ComplexF, __SVFloat32_t>::operator()(__SVFloa
//Real float Reduce //Real float Reduce
template <> template <>
//inline Grid::RealF Reduce<Grid::RealF, svfloat32_t>::operator()(svfloat32_t in){ //inline Grid::RealF Reduce<Grid::RealF, svfloat32_t>::operator()(svfloat32_t in){
inline Grid::RealF Reduce<Grid::RealF, __SVFloat32_t>::operator()(__SVFloat32_t in){ //inline Grid::RealF Reduce<Grid::RealF, __SVFloat32_t>::operator()(__SVFloat32_t in){
inline Grid::RealF Reduce<Grid::RealF, vecf>::operator()(vecf in){
pred pg1 = acle<float>::pg1(); pred pg1 = acle<float>::pg1();
return svred(pg1, in); return svred(pg1, in);
} }
//Complex double Reduce //Complex double Reduce
template <> template <>
//inline Grid::ComplexD Reduce<Grid::ComplexD, svfloat64_t>::operator()(svfloat64_t in){ //inline Grid::ComplexD Reduce<Grid::ComplexD, svfloat64_t>::operator()(svfloat64_t in){
inline Grid::ComplexD Reduce<Grid::ComplexD, __SVFloat64_t>::operator()(__SVFloat64_t in){ //inline Grid::ComplexD Reduce<Grid::ComplexD, __SVFloat64_t>::operator()(__SVFloat64_t in){
inline Grid::ComplexD Reduce<Grid::ComplexD, vecd>::operator()(vecd in){
pred pg_even = acle<double>::pg_even(); pred pg_even = acle<double>::pg_even();
pred pg_odd = acle<double>::pg_odd(); pred pg_odd = acle<double>::pg_odd();
double a = svred(pg_even, in); double a = svred(pg_even, in);
@ -725,14 +728,16 @@ inline Grid::ComplexD Reduce<Grid::ComplexD, __SVFloat64_t>::operator()(__SVFloa
//Real double Reduce //Real double Reduce
template <> template <>
//inline Grid::RealD Reduce<Grid::RealD, svfloat64_t>::operator()(svfloat64_t in){ //inline Grid::RealD Reduce<Grid::RealD, svfloat64_t>::operator()(svfloat64_t in){
inline Grid::RealD Reduce<Grid::RealD, __SVFloat64_t>::operator()(__SVFloat64_t in){ //inline Grid::RealD Reduce<Grid::RealD, __SVFloat64_t>::operator()(__SVFloat64_t in){
inline Grid::RealD Reduce<Grid::RealD, vecd>::operator()(vecd in){
pred pg1 = acle<double>::pg1(); pred pg1 = acle<double>::pg1();
return svred(pg1, in); return svred(pg1, in);
} }
//Integer Reduce //Integer Reduce
template <> template <>
//inline Integer Reduce<Integer, svuint32_t>::operator()(svuint32_t in){ //inline Integer Reduce<Integer, svuint32_t>::operator()(svuint32_t in){
inline Integer Reduce<Integer, __SVUint32_t>::operator()(__SVUint32_t in){ //inline Integer Reduce<Integer, __SVUint32_t>::operator()(__SVUint32_t in){
inline Integer Reduce<Integer, veci>::operator()(veci in){
pred pg1 = acle<Integer>::pg1(); pred pg1 = acle<Integer>::pg1();
return svred(pg1, in); return svred(pg1, in);
} }