feldspar-language-0.6.0.2: A functional embedded language for DSP and parallelism

Feldspar.Core.Frontend.MutableArray

newArr :: Type a => Data Length -> Data a -> M (Data (MArr a))Source

newArr_ :: Type a => Data Length -> M (Data (MArr a))Source

newListArr :: Type a => [Data a] -> M (Data (MArr a))Source

getArr :: Type a => Data (MArr a) -> Data Index -> M (Data a)Source

setArr :: Type a => Data (MArr a) -> Data Index -> Data a -> M ()Source

modifyArr :: Type a => Data (MArr a) -> Data Index -> (Data a -> Data a) -> M ()Source

arrLength :: Type a => Data (MArr a) -> M (Data Length)Source

mapArray :: Type a => (Data a -> Data a) -> Data (MArr a) -> M (Data (MArr a))Source

forArr :: Syntax a => Data Length -> (Data Index -> M a) -> M ()Source

swap :: Syntax a => Data (MArr (Internal a)) -> Data Index -> Data Index -> M ()Source