The PrimitiveArray package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.



generalized Algebraic Dynamic Programming

This library provides efficient multidimensional arrays. Import Data.PrimitiveArray for indices, lenses, and arrays.

For generalized ADP users, the library also provides the machinary to fill tables in the correct order required by usual CYK-style parsers, or regular grammars (used e.g. in alignment algorithms). This means that unless your grammar require a strange order in which parsing is to be performed, it will mostly just work.

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.

[Skip to ReadMe]


Dependenciesaeson (>=0.8 && <1.1), base (>=4.7 && <5.0), binary (>=0.7 && <0.9), bits (>=0.4 && <0.6), cereal (>=0.4 && <0.6), cereal-vector (==0.2.*), deepseq (>=1.3 && <1.5), DPutils (==0.0.0.*), hashable (==1.2.*), OrderedBits (==0.0.1.*), primitive (>=0.5.4 && <0.7), QuickCheck (>=2.7 && <2.9), smallcheck (==1.1.*), vector (>=0.10 && <0.12), vector-binary-instances (==0.2.*), vector-th-unbox (==0.2.*) [details]
CopyrightChristian Hoener zu Siederdissen, 2011-2016
AuthorChristian Hoener zu Siederdissen, 2011-2016
Home page
Bug tracker
Source repositoryhead: git clone git://
UploadedThu Sep 1 13:37:12 UTC 2016 by ChristianHoener




Maintainers' corner

For package maintainers and hackage trustees

Readme for PrimitiveArray-

Build Status


generalized Algebraic Dynamic Programming Homepage

PrimitiveArray provides operations on multi-dimensional arrays. Internally, the representation is based on the vector library, while the multi-dimensional indexing follows repa.

Primitive arrays are designed to be used together with ADPfusion.


Christian Hoener zu Siederdissen
Leipzig University, Leipzig, Germany