repa-array-4.1.0.1: Bulk array representations and operators.

Safe HaskellNone
LanguageHaskell98

Data.Repa.Eval.Stream

Description

Interface with stream fusion.

Synopsis

Documentation

streamOfArray :: (Monad m, Bulk l a, Index l ~ Int) => Array l a -> Stream m a Source

Produce a Stream for the elements of the given array.

unstreamToArray :: (Target l a, Unpack (Buffer l a) t) => Name l -> Stream Id a -> Array l a Source

Compute the elements of a pure Stream, writing them into a new array Array.

unstreamToArrayIO :: (Target l a, Unpack (Buffer l a) t) => Name l -> Stream IO a -> IO (Array l a) Source

Compute the elements of an IO Stream, writing them to a new Array.