NLA-lib Explorer

Rounded Givens rotations

Library · Source module

Rounded Givens rotations

The complex Givens rotation of the pair (u, \mathbf{v}) has the coefficients c = \bar u / r, s = \bar \mathbf{v} / r with r = \sqrt{\lvert u\rvert^2 + \lvert \mathbf{v}\rvert^2} (NLAlib.givensCoeffs). On a machine with the standard model of rounded arithmetic at the unit roundoff \boldsymbol{u} (NLAlib.Ops.StdModel, with a rounded square root) this file bounds

* the computed coefficients: each within 4\boldsymbol{u} of the exact ones, relatively (NLAlib.Ops.StdModel.norm_roundedGivensCoeffs_sub_le); * the computed complex linear combination c \mathbf{x} + s y of word pairs, as the operation core computes it (NLAlib.Ops.Pair.linearWords): within 5\boldsymbol{u}(\lvert c\rvert\lvert x\rvert + \lvert s\rvert\lvert y\rvert) (NLAlib.Ops.StdModel.norm_linearWords_sub_le); * both computed outputs of the rotation of a pair, jointly: within 12\boldsymbol{u} of the exact rotation (NLAlib.Ops.StdModel.norm_linearWords_rotation_sub_le); * a rotation of two rows (columns) of a matrix whose every column (row) pair is computed within \eta of the exact rotation of the pair, relatively: within 2\eta\|\mathbf{A}\|_2 in the spectral norm (NLAlib.IsRoundedRowRotation.specNorm_sub_le).

The last statement is the reusable rounded-kernel lemma: it turns a per-pair error, which is what a program proof over a generic machine returns, into the spectral-norm error that NLAlib.IsPerturbedUnitarySimilar.of_specNorm_sub_le consumes. Per two rows the error is O(\boldsymbol{u})\|\mathbf{A}\|_2, so a sweep of n rotations has backward error O(n\boldsymbol{u}) (the analysis of [BanksGarzaVargasSrivastava2022, Lemma 3.5] has 32n^{3/2}\boldsymbol{u}). [Higham2002, Lemmas 19.7–19.8].

Main definitions

* NLAlib.roundedGivensCoeffs: the coefficients computed by a machine, in a fixed instruction order. * NLAlib.IsRoundedRowRotation, NLAlib.IsRoundedColRotation: a rotation computed pairwise within a relative error. ## Main results

* NLAlib.Ops.StdModel.norm_roundedGivensCoeffs_sub_le, NLAlib.Ops.StdModel.norm_linearWords_sub_le, NLAlib.Ops.StdModel.norm_linearWords_rotation_sub_le: the coefficients and the outputs. * NLAlib.IsRoundedRowRotation.specNorm_sub_le, NLAlib.IsRoundedColRotation.specNorm_sub_le: the spectral-norm error of a rotation of two rows (columns).

Declarations