NLA-lib Explorer

Randomized kernels of the rounded shifted QR algorithm

Library · Source module

Randomized kernels of the rounded shifted QR algorithm

The small-eigenvalue routine SmallEig of [BanksGarzaVargasSrivastava2022, Definition 1.2] as a randomized kernel: on an upper Hessenberg matrix of order d it reads a window of W(d) entries of one stream of the tape and, unless the window lies in a bad set of probability at most \varphi, returns every eigenvalue, with multiplicity, within the forward error \beta. The call always succeeds and writes only its output block.

The window has a fixed length at each order, read at the call position; a routine that draws an adaptive number of samples does not fit this model. Such a program in the kernel's place ([BanksGarzaVargasSrivastava2025]) reads parameter words; its contract is a routine contract (NLAlib.ShiftedQR.RandomSmallEigContract, NLAlib.ShiftedQR.TerminatingSmallEig) on bounded orders and norms, with the interface [d, nq, T] (Bk, Q) → (Ev), which the kernel meets as a routine (NLAlib.ShiftedQR.smallEigKernel). Regularize calls such a routine for its Ritz values; the worklist's leaves are Schur leaves (NLAlib.Schur.RandomSchurLeafContract).

The disk sampler of the random shifts reads a radius word R and a window of two entries \mathbf{x}_0, \mathbf{x}_1 of one stream, and writes the pair of the polar sample R\sqrt{\mathbf{x}_0}\,e^{2\pi i \mathbf{x}_1} exactly (NLAlib.polarDisk): for uniform draws it is uniform on \mathbb{D}(0, R) (NLAlib.map_polarDisk_eq_diskUniform). The sample is exact, as in the paper; a rounded sampler is not modelled.

Main definitions

* NLAlib.ShiftedQR.randomSmallEigRel: the kernel's contract in operand form. * NLAlib.ShiftedQR.IsRandomSmallEig: the interpretation's smallEig is such a kernel. * NLAlib.ShiftedQR.DiskSampleOp, NLAlib.ShiftedQR.polarDiskRel, NLAlib.ShiftedQR.polarDiskFn, NLAlib.ShiftedQR.IsPolarDiskSampler: the exact polar disk sampler.

Main results

* NLAlib.ShiftedQR.IsRandomSmallEig.randomSmallEigContract, NLAlib.ShiftedQR.IsRandomSmallEig.terminatingSmallEig: the kernel meets the routine contracts.

Declarations