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

Safe HaskellNone

Feldspar.Memoize

Synopsis

Documentation

tabulate :: (Bits i, Integral i, Syntax a) => (Data i -> a) -> Data i -> aSource

Accelerate the function f using a lookup table. The table will span all possible input values.

tabulateLen :: (Integral i, Syntax a) => Data Length -> (Data i -> a) -> Data i -> aSource

Accelerate the function f by creating a lookup table of the results for the len first argument values

Note. To really get a table the function must be closed after the application to i