10 Nov 12:59 2012

## ANN: fixed-vector

Aleksey Khudyakov <alexey.skladnoy <at> gmail.com>

2012-11-10 11:59:14 GMT

2012-11-10 11:59:14 GMT

Hello cafe! I want to announce library for the small vectors of fixed length fixed-vector[1]. Fixed means that vector's length is determined by its type. Generic API can work with both ATD-based vector like complex or Vec written below and array-based ones. > data Vec a = Vec a a a It's based on post by Roman Leschinsiy[2]. Library also provide array-based vectors with memory representation similar to onves from vector package. It's more compact though because there is no need to store lengh and and offset to first element. [1] http://hackage.haskell.org/package/fixed-vector [2] http://unlines.wordpress.com/2010/11/15/generics-for-small-fixed-size-vectors/