feldspar-language-0.7: A functional embedded language for DSP and parallelism
Feldspar.Memoize
Synopsis
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.
f
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
len
Note. To really get a table the function must be closed after the application to i
i