NLA-lib Explorer

NLAlib.Ops.Machine.perturbWords

Library · def

The matrix \mathbf{A} + \gamma' \mathbf{G} computed by a machine from the real Gaussian words \mathbf{x} (column-major, real and imaginary parts adjacent): the scale \gamma' = \mathrm{fl}(\gamma/\mathrm{fl}(\sqrt N)), each word multiplied by the stored \sqrt{1/2} and by \gamma', and added to the entry of \mathbf{A}, all rounded.

NLAlib.Ops.Machine.perturbWords (M : Ops.Machine ℝ) {N : ℕ} (γ : ℝ) (A : Matrix (Fin N) (Fin N) ℂ)
  (x : ℕ → ℝ) : Matrix (Fin N) (Fin N) ℂ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsSampling.