vector-sized alternatives and similar packages
Based on the "vector" category.
Alternatively, view vector-sized alternatives based on common mentions on social networks and blogs.
vector9.8 5.0 vector-sized VS vectorAn efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework .
vector-space8.7 0.0 vector-sized VS vector-spaceVector & affine spaces, linear maps, and derivatives
vector-th-unbox7.8 0.0 vector-sized VS vector-th-unboxDeriver for unboxed vectors using Template Haskell
vector-instances7.5 0.0 vector-sized VS vector-instancesAdditional Instances for Data.Vector
vector-binary-instancesInstances for the Haskell Binary class, for the types defined in the popular vector package.
vector-space-pointsA type for points, as distinct from vectors.
vector-builder6.4 0.0 vector-sized VS vector-builderVector builder
vector-bytestringByteStrings as type synonyms of Vectors
vector-heterogenousArbitrary size tuples in Haskell
vector-fftw5.7 0.0 vector-sized VS vector-fftwA Haskell binding to the fftw library
vector-functorlazyvectors supporting lazy fmap application; asymptotically faster in some cases
vector-clock4.9 0.0 vector-sized VS vector-clockVector clocks for versioning message flows
vector-space-map3.4 0.0 vector-sized VS vector-space-mapvector-space operations for finite maps using Data.Map
vector-conduit2.1 0.0 vector-sized VS vector-conduitConduit implementations for vectors
Access the most powerful time series database as a service
Do you think we are missing an alternative of vector-sized or a related project?
This package exports a newtype tagging the vectors from the
package with a type-level natural representing their size. It also exports
vector whose size can be determined ahead of time,
Currently, we provide size-tagged versions of the following:
We also provide mutable versions of each of the above. Additionally, we include functions for converting to and from 'unsized' vectors and lists, using CPS-style existentials.
The code in this package is based on the initial work by Ben Gamari in a PR for
How is this different to
This package is fairly similar to
fixed-vector, as both libraries are
designed to provide vectors of statically known length. However, the
implementations used are different, with different tradeoffs.
uses a newtype wrapper around vectors from
vector, and is thus able to
handle vectors of arbitrary length. However, this approach requires us to carry
a runtime representation of length, which is a significant memory overhead for
fixed-vector instead defines all functions as manipulations
of Church-encoded product types of the form
∀r. (a → a → r) → r (for 2D
vectors), allowing it to work for both arbitrary product types (like
data V2 a
= V2 a a) and opaque length-parameterized vectors. However, as a consequence
of this implementation choice,
fixed-vector cannot handle vectors whose size
exceeds tens of elements.