Boost logo

Boost :

Subject: Re: [boost] interest in structure of arrays container?
From: Andreas Schäfer (gentryx_at_[hidden])
Date: 2016-10-21 21:11:53


Heya,

On 13:46 Sun 16 Oct , Michael Marcin wrote:
> > Would something like an soa_vector, that's resizable at runtime and
> > behaves much like a std::vector better suit your needs?
> >
>
> Yes exactly that.

just FYI: I've added a basic soa_vector to LibFlatArray's trunk[1].
It's not perfect, but allows basic usage and particle callbacks (see
test[2]). I'm looking forward to benchmarking that code. :-)

> I would also strongly prefer a tuple-like variadic template interface to
> a macro interface.

Yeah, macros are poor, but I wanted an interface where members have
sensible names (as opposed to first, second...) Not much options
without reflection.

Cheers
-Andreas

[1] https://github.com/gentryx/libflatarray/blob/master/include/libflatarray/soa_vector.hpp
[2] https://github.com/gentryx/libflatarray/blob/master/test/soa_vector_test.cpp#L174

-- 
==========================================================
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!



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk