repa-array-4.2.3.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 => 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 => Name l -> Stream IO a -> IO (Array l a) Source #

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