FIAS . Impressum . Privacy

Best way to fill an array of Struct of Float_vs with an array of Struct of floats in VC

Matthias Kretz [please enable javascript to see the address]
Wed Aug 26 12:18:29 CEST 2015


Hello Krishna,

On Thursday 13 August 2015 16:48:16 Krishna Narasimhan wrote:
> Struct A{
>    float a,b,c
> }
> 
> Struct A_v
> {
>     float_v a_v,b_v,c_v
> }
> 
> void main()
> {
>    A a = new A[1000];
>    A_v a_v = new A_v[1000/float_v::Size]
>    // Assume here there is a code that populates a with values
> 
>    I want to write a code here which would basically move values of a into
> a_v because deinterleave doesnt work. Is there a form of fill() or store()
> or load() I can use here?

I have written lots of such code for Vc. I recommend you take a look at Vc 
master. Are you currently working on 0.7 or on master?

In any case. Your mail prompted me to work on my documentation. I'll hopefully 
have a new section on Vc::simdize<T> up today. I'll let you know.

Cheers,
  Matthias



More information about the Vc mailing list
FIAS . Impressum . Privacy