ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("antarex.memoi.MemoizationMath");

(.lara)
import antarex.memoi.MemoizationMath;

Aspects

Memoize_AllMathFunctions

Memoizes all the Math Functions referenced in the application, using default parameters.



Memoize_MathFunction

Memoizes a Math Function with default parameters.


Inputs

target: string - of a math function.
bres:: boolean - returned value, equal to "true" if the target is a memoizable mathematical function, "false" otherwise.

Outputs

bres: any

Memoize_MathFunction_ARGS

Memoizes a Math Function with specified parameters.


Inputs

target: string - of a math function.
fileToLoad:: string - the name of the file to load to initialse the internal table, or none.
FullOffLine:: string - yes or no. yes implies a full off lime memoization (requires a fileToLoad).
FileToSave:: string - the name of the file to save the data of the table, or none.
AlwaysReplace:: string - yes or no. yes implis that in case of collisions, the table is updated.
precision:: int - the number of bit to delete (float/double) for internal approximation, 0 for int.
tsize:: int - the size of the table.
bres:: boolean - returned value, equal to "true" if the target is a memoizable mathematical function, "false" otherwise.
fileToLoad: any
FullOffLine: any
FileToSave: any
AlwaysReplace: any
precision: any
tsize: any

Outputs

bres: any

Memoize_MathFunctions

Memoizes a set fo Math Functions.


Inputs

functions: array of string - to memoize. Example: call Memoize_MathFunctions(['sin', 'cos']);
targets: any (optional)