NLA-lib Explorer

NLAlib.gridMachine

Library · def

The floating-point machine of the grid with t bits and unbounded exponent, on stored reals decoded by \mathrm{fl}(\mathbf{x}) (Real.roundNearest t): 0 and 1, negation (of the decoded value), comparison and the floor conversion of decoded values are exact; conversion, addition, subtraction, multiplication and division round the exact result on the decoded operands; the black boxes are NLAlib.gridMM t and NLAlib.gridQR t; the uniform sampler clamps the rounded \bar s \mathbf{v} to [-\bar s, \bar s] and the normal sampler rounds both parts.

NLAlib.gridMachine (t : ℕ) : FloatMachine ℝ ℝ ℂ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GridMachine.