ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("clava.hls.MathAnalysis");

(.lara)
import clava.hls.MathAnalysis;

Aspects

MathCompare

Inputs

mathFun: any

MathReplace

Applies a series of mathemtatical function replacements using the following rules:
- For every function with a signature requiring args of type "double" but with the
provided args of type "float", it replaces the function by its "float" equivalent,
if present on the provided math.h info implementation
- If a square root is found, it is replaced by a fast inverse square root and a multiplication,
for both "double" and "float" types, as required. The implementation of the functions is added
to the source file
- Replaces calls to the "pow" function using an integer exponent with a series of multiplications


Inputs

mathFun: JSON - A JSON holding information about the signature of all functions present on a math.h. Can be obtained using clava.hls.MathHInfo, or otherwise built manually (see documentation of clava.hls.MathHInfo for the format)

MathReport

Inputs

mathFun: any
csv: any
name: any

Global Functions

rsqrt

rsqrt()