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
- NLAlib.ShiftedQR.abs_pairVecNormWord_sub_le
- NLAlib.ShiftedQR.abs_rpow_inv_natCast_sub_le
- NLAlib.ShiftedQR.abs_sqrt_prodWords_normSqFactors_sub_le
- NLAlib.ShiftedQR.abs_sqrt_sumNormSq_sub_le
- NLAlib.ShiftedQR.foldWords
- NLAlib.ShiftedQR.foldWords_add_bounds
- NLAlib.ShiftedQR.foldWords_mul
- NLAlib.ShiftedQR.loop_writes_normSqMulRound
- NLAlib.ShiftedQR.loop_writes_normSqOpRound
- NLAlib.ShiftedQR.normSqFactors
- NLAlib.ShiftedQR.normSqMulRound
- NLAlib.ShiftedQR.normSqOpRound
- NLAlib.ShiftedQR.normSqWord
- NLAlib.ShiftedQR.normSqWord_bounds
- NLAlib.ShiftedQR.one_add_pow_le_one_add_two_mul
- NLAlib.ShiftedQR.pairVecNormWithScratch
- NLAlib.ShiftedQR.pairVecNormWithScratch_writes_word
- NLAlib.ShiftedQR.pairVecNormWord
- NLAlib.ShiftedQR.prodWords_normSqFactors_bounds
- NLAlib.ShiftedQR.sum_fin_eq_sum_range_vecGetD
- NLAlib.ShiftedQR.vecGetD