@hackage vector0.7.1
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 fusion optimization 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.
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.7.1
New functions:
iterateN,splitAtNew monadic operations:
generateM,sequence,foldM_and variantsNew functions for copying potentially overlapping arrays:
move,unsafeMoveSpecialisations of various monadic operations for primitive monads
Unsafe casts for Storable vectors
Efficiency improvements
Changes in version 0.7.0.1
Dependency on package ghc removed
Changes in version 0.7
New functions for freezing, copying and thawing vectors:
freeze,thaw,unsafeThawandclonenewWithandnewUnsafeWithon mutable vectors replaced byreplicateNew function:
concatNew function for safe indexing:
(!?)Monoidinstances for all vector typesSignificant recycling and fusion improvements
Bug fixes
Support for GHC 7.0