NLA-lib Explorer

NLAlib.SmallEig.ginibrePerturb

Library · def

The Gaussian perturbation ([BanksGarzaVargasSrivastava2025, Theorem 1.1], line 1 of Eig, with the scale computed by the program): draw 2N^2 words of the stream sG into scratch, compute \gamma' = \mathrm{fl}(\gamma/\mathrm{fl}(\sqrt N)) from the word \gamma = Q[0] and the literal N, and the stored \sqrt{1/2}, and add \gamma'\sqrt{1/2}(\mathbf{x}_{2k} + i \mathbf{x}_{2k+1}) to the k-th entry of A, rounded. The interface is [N, nq] (A, Q) → (A). Algorithm: small-eig

NLAlib.SmallEig.ginibrePerturb {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.SampleOp O] (sG : ℕ) : Ops.Stmt O Q

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Perturb.