NLA-lib Explorer

NLAlib.IsUnifSampler

Library · def

IsUnifSampler dec u τ unif: unif turns an ideal uniform seed into a computed shift: for a stored scale s with \bar s \ge 0 and a seed \mathbf{v} \in [-1, 1], the computed c = \mathrm{unif}(s, \mathbf{v}) has \lvert \bar c \rvert \le \bar s and \lvert \bar s \mathbf{v} - \bar c \rvert \le u\max(\bar s, \tau) (floor \tau for gradual underflow, 0 with an unbounded exponent). With \mathbf{v} uniform on [-1, 1] this is the coupling of [Shah2024, Definition 1.3].

NLAlib.IsUnifSampler.{u_3} {F : Type u_3} (dec : F → ℝ) (u τ : ℝ) (unif : F → ℝ → F) : Prop

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Machine.