compact-word-vectors-0.1: Small vectors of small integers stored very compactly.

Safe HaskellNone
LanguageHaskell2010

Data.Vector.Compact.IntVec

Contents

Description

Signed integer version of dynamic word vectors.

See Data.Vector.Compact.WordVec for more details.

Synopsis

The dynamic Int vector type

newtype IntVec Source #

A dynamic int vector is a (small) vector of small signed integers stored compactly

Constructors

IntVec WordVec 
Instances
Eq IntVec Source # 
Instance details

Defined in Data.Vector.Compact.IntVec

Methods

(==) :: IntVec -> IntVec -> Bool #

(/=) :: IntVec -> IntVec -> Bool #

Ord IntVec Source # 
Instance details

Defined in Data.Vector.Compact.IntVec

Show IntVec Source # 
Instance details

Defined in Data.Vector.Compact.IntVec

Empty

Conversion from/to lists

fromList' :: (Int, (Int, Int)) -> [Int] -> IntVec Source #

lenMinMax :: [Int] -> (Int, (Int, Int)) Source #

Indexing

helpers for counting the necessary number of bits

roundBits :: Int -> Int Source #

We only allow multiples of 4.