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

Safe HaskellNone
LanguageHaskell98

Data.Repa.Eval.Chain

Description

Interface with chain fusion.

Synopsis

Documentation

chainOfArray :: (Monad m, Bulk l a) => Array l a -> Chain m Int a Source #

Produce a Chain for the elements of the given array. The order in which the elements appear in the chain is determined by the layout of the array.

unchainToArray :: Target l a => Name l -> Chain Id s a -> (Array l a, s) Source #

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

unchainToArrayIO :: Target l a => Name l -> Chain IO s a -> IO (Array l a, s) Source #

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