FIAS . Impressum . Privacy

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

Jaroslav Malec [please enable javascript to see the address]
Wed Aug 26 12:28:30 CEST 2015


Matthias,

As far as I know, in the current implementation you can use *scatter* and
*gather* for these operations.
Please correct me If this is a misconception.

If I'm on the right track on this, could you provide some code examples
that relate
to what Krishna has in mind? It could be contained in the documentation
also.
We would both appreciate it.

Thanks.

Jaroslav Malec

tel. 731 160 847

[please enable javascript to see the address]>:

> 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
>>
>
> _______________________________________________
> 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/5750aec5/attachment.html>


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