The PrimitiveArray package

[Tags: bsd3, library]

This library provides efficient multidimensional arrays.

In general all operations are (highly) unsafe, no bounds-checking or other sanity-checking is performed. Operations are aimed toward efficiency as much as possible. Goals of the library are to have arrays according to three ideas: immutablemutable arrays, strictlazy arrays, zero-based/lower-bound arrays. Zero-based arrays save one addition on each access if the lower bound or the array is always zero.

We have forked two repa modules: Shape and Index.

Unboxed vectors are available with implementations based on primitive and vector. For some reason, we loose 50% performance with RNAfold if we use vector as the underlying data type, while Nussinov78 does not suffer.


Dependenciesbase (==4.*), primitive (>=0.4), vector (>=0.9)
CopyrightChristian Hoener zu Siederdissen, 2010-2012
AuthorChristian Hoener zu Siederdissen
Home page
Source repositoryhead: git clone git://
Upload dateSun Jul 8 00:59:54 UTC 2012
Uploaded byChristianHoener
Downloads2002 total (215 in last 30 days)




Maintainers' corner

For package maintainers and hackage trustees