hw-prim-0.6.3.1: Primitive functions and data types
Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Vector.Storable

Synopsis

Documentation

foldMap :: (Storable a, Monoid m) => (a -> m) -> Vector a -> m Source #

mapAccumL :: forall a b c. (Storable b, Storable c) => (a -> b -> (a, c)) -> a -> Vector b -> (a, Vector c) Source #

mmap :: Storable a => FilePath -> IO (Vector a) Source #

MMap the file as a storable vector. If the size of the file is not a multiple of the element size in bytes, then the last few bytes of the file will not be included in the vector.

constructSI :: forall a s. Storable a => Int -> (Int -> s -> (s, a)) -> s -> (s, Vector a) Source #

Construct a vector statefully with index

construct2N :: (Storable b, Storable c) => Int -> (forall s. a -> MVector s b -> ST s Int) -> Int -> (forall s. a -> MVector s c -> ST s Int) -> [a] -> (Vector b, Vector c) Source #

unzipFromListN2 :: (Storable a, Storable b) => Int -> [(a, b)] -> (Vector a, Vector b) Source #