vector: Efficient Arrays
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.Unboxed is 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.9.1
New functions:
unsafeFromForeignPtr0andunsafeToForeignPtr0Small performance improvements
Fixes for GHC 7.4
Changes in version 0.9
MonadPlusinstance for boxed vectorsExport more
constructandconstructNfromSafemodulesRequire
primitive-0.4.0.1
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
Modules
[Index]
Flags
Automatic Flags
| Name | Description | Default |
|---|---|---|
| boundschecks | Enable bounds checking | Enabled |
| unsafechecks | Enable bounds checking in unsafe operations at the cost of a significant performance penalty | Disabled |
| internalchecks | Enable internal consistency checks at the cost of a significant performance penalty | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- vector-0.9.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1, 0.2, 0.3, 0.3.1, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.6.0.1, 0.6.0.2, 0.7, 0.7.0.1, 0.7.1, 0.8, 0.9, 0.9.1, 0.10, 0.10.0.1, 0.10.9.0, 0.10.9.1, 0.10.9.2, 0.10.9.3, 0.10.10.0, 0.10.11.0, 0.10.12.0, 0.10.12.1, 0.10.12.2, 0.10.12.3, 0.11.0.0, 0.12.0.0, 0.12.0.1, 0.12.0.2, 0.12.0.3, 0.12.1.0, 0.12.1.1, 0.12.1.2, 0.12.2.0, 0.12.3.0, 0.12.3.1, 0.13.0.0, 0.13.1.0, 0.13.2.0 (info) |
|---|---|
| Change log | Changelog |
| Dependencies | base (>=4 && <5), ghc-prim, primitive (>=0.4.0.1 && <0.5) [details] |
| License | BSD-3-Clause |
| Copyright | (c) Roman Leshchinskiy 2008-2011 |
| Author | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
| Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
| Category | Data, Data Structures |
| Home page | http://code.haskell.org/vector |
| Bug tracker | http://trac.haskell.org/vector |
| Uploaded | by RomanLeshchinskiy at 2011-12-31T00:31:02Z |
| Distributions | Arch:0.13.2.0, Debian:0.12.1.2, Fedora:0.13.2.0, FreeBSD:0.10.12.3, LTSHaskell:0.13.2.0, NixOS:0.13.2.0, Stackage:0.13.2.0, openSUSE:0.13.2.0 |
| Reverse Dependencies | 2148 direct, 13454 indirect [details] |
| Downloads | 425680 total (157 in the last 30 days) |
| Rating | 2.75 (votes: 14) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |