Fast math operations
- fmath.atanh(x)[source]
Fast math version of ‘atanh’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.exp(x)[source]
Fast math version of ‘exp’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.hardtanh(x)[source]
Fast math version of ‘hardtanh’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.log(x)[source]
Fast math version of ‘log’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.log10(x)[source]
Fast math version of ‘log10’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.log2(x)[source]
Fast math version of ‘log2’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.pow(a, b)[source]
Fast math version of ‘pow’ function
- Parameters
a (float) – Base
b (float) – Exponent
- Returns
res – Result of the function
- Return type
float
- fmath.pow2(x)[source]
Fast math version of ‘pow2’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float
- fmath.rsqrt(x)[source]
Fast math version of ‘rsqrt’ function
- Parameters
x (float) – Value to evaluate
- Returns
res – Result of the function
- Return type
float