1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-12 20:27:06 +01:00

Converted set_uw and set_fj to all complex functions

This commit is contained in:
Guido Cossu
2016-07-03 10:27:43 +01:00
parent 092fa0d8da
commit 1a6d65c6a4
3 changed files with 185 additions and 115 deletions

View File

@ -490,7 +490,7 @@ namespace Grid {
typedef Grid_simd<S,V> simd;
simd ret;
typename simd::conv_t conv;
conv.v = in.v;
conv.v = in.v; // copy the vector content (bytewise)
for(int i=0;i<simd::Nsimd();i+=2){
conv.s[i+1]=conv.s[i]; // duplicate (r,r);(r,r);(r,r); etc...
}