Heya, On 21:43 Fri 14 Oct , Michael Marcin wrote:
Does this already exist somewhere?
you may want to take a look at LibFlatArray. It's a struct-of-arrays library for C++, which also helps with vectorization and address generation: http://libgeodecomp.org/libflatarray.html
Does it seem useful?
I think everyone who's using arrays of structs/objects and needs improved arithmetic performance can benefit from such a library. Cheers -Andreas -- ========================================================== Andreas Schäfer HPC and Supercomputing Institute for Multiscale Simulation Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany +49 9131 85-20866 PGP/GPG key via keyserver http://www.libgeodecomp.org ========================================================== (\___/) (+'.'+) (")_(") This is Bunny. Copy and paste Bunny into your signature to help him gain world domination!