@hackage vector0.8
Efficient Arrays
Categories
License
BSD-3-Clause
Maintainer
Roman Leshchinskiy <rl@cse.unsw.edu.au>
Links
- Homepage
- Documentation
- No source repository
- Changelog
- Security
Versions
Installation
Dependencies (2)
Dependents (2611)
@hackage/arbor-datadog, @hackage/tcod-haskell, @hackage/hsndfile-vector, @hackage/timeseries, @hackage/pgmq-hasql, @hackage/gridland, Show all…
Package Flags
boundschecks
(on by default)
Enable bounds checking
unsafechecks
(off by default)
Enable bounds checking in unsafe operations at the cost of a significant performance penalty
internalchecks
(off by default)
Enable internal consistency checks at the cost of a significant performance penalty
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework .
It is structured as follows:
Data.Vector- Boxed vectors of arbitrary types.
Data.Vector.Unboxed- Unboxed vectors with an adaptive representation based on data type families.
Data.Vector.Storable- Unboxed vectors of
Storabletypes. Data.Vector.Primitive- Unboxed vectors of primitive types as
defined by the
primitivepackage.Data.Vector.Unboxedis more flexible at no performance cost. Data.Vector.Generic- Generic interface to the vector types.
Each module has a Safe version with is marked as Trustworthy
(see http://hackage.haskell.org/trac/ghc/wiki/SafeHaskell).
There is also a (draft) tutorial on common uses of vector.
Please use the project trac to submit bug reports and feature requests.
Changes in version 0.8
New functions:
constructN,constructrNSupport for GHC 7.2 array copying primitives
New fixity for
(!)Safe Haskell support (contributed by David Terei)
Functor,Monad,Applicative,Alternative,FoldableandTraversableinstances for boxed vectors (WARNING: they tend to be slow and are only provided for completeness)Showinstances for immutable vectors follow containers conventionsReadinstances for all immutable vector typesPerformance improvements