FIAS . Impressum . Privacy

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

Krishna Narasimhan [please enable javascript to see the address]
Wed Aug 26 12:20:33 CEST 2015


Am working on 0.7. Any particular exampke where you load such structures
into vectors?
[please enable javascript to see the address]> wrote:

> 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
>
> _______________________________________________
> Vc mailing list
>[please enable javascript to see the address]
> https://compeng.uni-frankfurt.de/mailman/listinfo/vc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20150826/5320c4a5/attachment.html>


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