Safe Haskell | None |
---|
Documentation
Delayed arrays are represented as functions from the index to element value.
Every time you index into a delayed array the element at that position is recomputed.
fromFunction :: sh -> (sh -> a) -> Array D sh aSource
O(1). Wrap a function as a delayed array.
toFunction :: (Shape sh, Source r1 a) => Array r1 sh a -> (sh, sh -> a)Source
O(1). Produce the extent of an array, and a function to retrieve an arbitrary element.