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

Feldspar.Core.Functions.Array

Description

Core language array operations

Synopsis

Documentation

arrayLen :: Type a => Data Length -> [a] -> Data [a]Source

Constructs an array of the given length and initialization.

getIx :: Type a => Data [a] -> Data Index -> Data aSource

Look up an index in an array (see also !)

setIxSource

Arguments

:: Type a 
=> Data [a]

Source array

-> Data Index

Index to replace

-> Data a

New value

-> Data [a] 

Array update

getLength :: Type a => Data [a] -> Data LengthSource

Array length

class RandomAccess a whereSource

Associated Types

type Element a Source

The type of elements in a random access structure

Methods

(!) :: a -> Data Index -> Element aSource

Index lookup in a random access structure

Instances