Safe Haskell | None |
---|
- data Array sh a
- shape :: Array sh a -> sh
- toList :: (C sh, Storable a) => Array sh a -> IO [a]
- fromList :: (C sh, Storable a) => sh -> [a] -> IO (Array sh a)
- vectorFromList :: (Num n, Storable a) => [a] -> IO (Array (ZeroBased n) a)
- with :: (C sh, C a) => (Array sh a -> IO b) -> Array sh a -> IO b
- render :: (C sh, Storable sh, C sh, Storable a, C a) => Array sh a -> IO (Array sh a)
- scanl1 :: (C sh, Storable sh, C sh, C n, Storable n, C n, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array (sh, n) a -> IO (Array (sh, n) a)
- mapAccumLSimple :: (C sh, Storable sh, C sh, C n, Storable n, C n, C acc, Storable x, C x, Storable y, C y) => (Exp acc -> Exp x -> Exp (acc, y)) -> Array sh acc -> Array (sh, n) x -> IO (Array (sh, n) y)
- scatter :: (C sh0, Index sh0 ~ ix0, C sh1, Index sh1 ~ ix1, Storable sh1, C sh1, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array sh1 a -> Array sh0 (ix1, a) -> IO (Array sh1 a)
- scatterMaybe :: (C sh0, Index sh0 ~ ix0, C sh1, Index sh1 ~ ix1, Storable sh1, C sh1, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array sh1 a -> Array sh0 (Maybe (ix1, a)) -> IO (Array sh1 a)
- permute :: (C sh0, Index sh0 ~ ix0, C sh1, Index sh1 ~ ix1, Storable sh1, C sh1, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array sh1 a -> (Exp ix0 -> Exp ix1) -> Array sh0 a -> IO (Array sh1 a)
Documentation
data Array sh a
with :: (C sh, C a) => (Array sh a -> IO b) -> Array sh a -> IO bSource
The symbolic array is only valid inside the enclosed action.
scanl1 :: (C sh, Storable sh, C sh, C n, Storable n, C n, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array (sh, n) a -> IO (Array (sh, n) a)Source
mapAccumLSimple :: (C sh, Storable sh, C sh, C n, Storable n, C n, C acc, Storable x, C x, Storable y, C y) => (Exp acc -> Exp x -> Exp (acc, y)) -> Array sh acc -> Array (sh, n) x -> IO (Array (sh, n) y)Source
scatter :: (C sh0, Index sh0 ~ ix0, C sh1, Index sh1 ~ ix1, Storable sh1, C sh1, Storable a, C a) => (Exp a -> Exp a -> Exp a) -> Array sh1 a -> Array sh0 (ix1, a) -> IO (Array sh1 a)Source