4 ms·
Working with unzipped structures (xs+ys instead of xys) can be a bit of a pain. It seems like a transformation that a compiler should be able to do easily, give
by evincarofautumn 13y ago
Working with unzipped structures (xs+ys instead of xys) can be a bit of a pain. It seems like a transformation that a compiler should be able to do easily, given enough information about structure and (ugh) aliasing. I wish C had real array types. :(
- carterschonwald 13y agoHappily, in Haskell the standard array library does the struct of arrays format for unboxed arrays. It's super handy!
- evincarofautumn 13y agoI thought the array package was deprecated. Its mutable API is nicer than vector’s, though, if I recall correctly.
- Kutta 13y agoVector does the SOA represetation too.
- carterschonwald 13y agoyup, Vector is the one i have mind. (Vector is also an array lib)