@hackage PrimitiveArray0.2.2.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". For some reason, we loose 50% performance with RNAfold if we use "vector" as the underlying data type, while Nussinov78 does not suffer.