NLA-lib Explorer

NLAlib.binaryFloatMachine

Library · def

The floating-point machine of a binary format fmt with nearest selector r, on stored reals with real seeds and complex samples: 0 and 1, negation, comparison and the floor conversion are exact; conversion, addition, subtraction, multiplication and division round the exact result with NLAlib.Computation.binaryFloatRound; the matrix product and the QR factorization compute the exact product (an exact factorization, chosen) and round each entry, real and imaginary parts separately; the uniform sampler clamps the rounded s\mathbf{v} to [-s, s] and the normal sampler rounds both parts.

NLAlib.binaryFloatMachine (fmt : Float.Model.Format) (r : ℝ → ℤ) : FloatMachine ℝ ℝ ℂ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloatMachine.