@hackage PrimitiveArray0.3.0.0
Efficient multidimensional arrays
Installation
Dependencies (3)
Dependents (29)
@hackage/WordAlignment, @hackage/Forestry, @hackage/Gene-CluEDO, @hackage/BiobaseInfernal, @hackage/FormalGrammars, @hackage/GrammarProducts, Show all…
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". The "primitive" version is probably obsolete now, as I don't see any slowdowns anymore. If this continues into GHC 7.6.1, I'll remove the old code (This will probably not break user code using Unboxed.Zero).