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]
Thu Aug 13 16:48:16 CEST 2015
Hi,
Consider the example you have a struct
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?
}
Regards,
Krishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20150813/a4b553ec/attachment.html>
More information about the Vc
mailing list