uxarray.utils.computing._two_prod_fma#
- uxarray.utils.computing._two_prod_fma(a, b)#
Error-free transformation of the product of two floating-point numbers using FMA, such that a * b = x + y exactly.
- Parameters:
- Returns:
The product and the error term.
- Return type:
Examples
>>> _two_prod_fma(1.0, 2.0) (2.0, 0.0)
Stef Graillat. Accurate Floating Point Product and Exponentiation. IEEE Transactions on Computers, 58(7), 994–1000, 2009.10.1109/TC.2008.215.