NLA-lib Explorer

Rounded sums and products of squared moduli

Library · Source module

Rounded sums and products of squared moduli

Word pairs (\mathbf{x}, y) of complex numbers, their squared moduli \mathrm{fl}(\mathrm{fl}(\mathbf{x}^2) + \mathrm{fl}(y^2)) on a machine with the standard model, and their rounded products and sums: one loop rule (NLAlib.ShiftedQR.loop_writes_normSqOpRound) gives the stored word of a fold of squared moduli by any scalar operation, on any scalar machine; the accuracy lemmas bound the rounded product of moduli (NLAlib.ShiftedQR.abs_sqrt_prodWords_normSqFactors_sub_le) and the rounded Euclidean norm of a stored vector (NLAlib.ShiftedQR.abs_pairVecNormWord_sub_le). Roots of a relatively perturbed number are bounded once (NLAlib.ShiftedQR.abs_rpow_inv_natCast_sub_le).

Main definitions

* NLAlib.ShiftedQR.normSqWord, NLAlib.ShiftedQR.normSqFactors, NLAlib.ShiftedQR.foldWords: the machine words. * NLAlib.ShiftedQR.normSqOpRound: one round of a fold of squared moduli. * NLAlib.ShiftedQR.pairVecNormWithScratch: the rounded Euclidean norm of a stored vector.

Main results

* NLAlib.ShiftedQR.loop_writes_normSqOpRound, NLAlib.ShiftedQR.loop_writes_normSqMulRound: the fold and product loops on any scalar machine. * NLAlib.ShiftedQR.prodWords_normSqFactors_bounds: the rounded product of squared moduli. * NLAlib.ShiftedQR.abs_sqrt_prodWords_normSqFactors_sub_le: the rounded product of moduli. * NLAlib.ShiftedQR.foldWords_add_bounds: a rounded sum of nonnegative words. * NLAlib.ShiftedQR.abs_pairVecNormWord_sub_le: the rounded Euclidean norm.

Declarations