Find in floating point
Library · Source module
Find in floating point
The binary search \mathrm{Find} of [BanksGarzaVargasSrivastava2022, Lemma 5.1] for a promising Ritz value among k = 2^m shifts, with computed comparison values. Each level compares the two halves of the current window by a routine that computes \tau = \|\mathbf{e}_n^{\mathsf{T}}p_h(\mathbf{H})^{-e}\|^{-1} for a half h and the current exponent e within the relative error 0.0011 (NLAlib.ShiftedQR.IsHalfTau), keeps the half with the smaller value, and doubles the exponent. The program is the exact-arithmetic search (its initialization, decision and final copy, NLAlib.ShiftedQR.findRitzSearch) with the exact half norms replaced by the routine; the routine is a parameter, met by e rounded degree-h steps (NLAlib.ShiftedQR.multiStepStable) followed by the rounded product of the moduli of the last diagonal entries ([BanksGarzaVargasSrivastava2022, Lemma 3.9]).
The index words (window start, half length, exponent) are natural literals; the machine stores them exactly up to k (NLAlib.Ops.IsExactNatLit), as the standard model alone does not.
Main definitions
* NLAlib.ShiftedQR.IsHalfTau: the contract of the comparison routine. * NLAlib.ShiftedQR.findRounded: the program. * NLAlib.ShiftedQR.repeatBlock, NLAlib.ShiftedQR.stepComptau, NLAlib.ShiftedQR.comptauHalf: a block copied e times; comptau of a degree k rounded step; the comparison routine (that step with the half repeated e times).
Main results
* NLAlib.ShiftedQR.findRounded_writes_choice: the stored result is a choice of Find with computed values (NLAlib.IsFindRitzChoice). * NLAlib.ShiftedQR.findRounded_writes: the stored result is (1.01B)^{4m/2^m}-promising. * NLAlib.ShiftedQR.repeatBlock_writes, NLAlib.ShiftedQR.stepComptau_writes: their memory and the 0.001 of comptau after a degree k rounded step. * NLAlib.ShiftedQR.comptauHalf_isHalfTau: the comparison routine satisfies the contract. * NLAlib.ShiftedQR.findRitzInitialize_writes_of_exactNatLit, NLAlib.ShiftedQR.findRitzDecision_writes_of_exactNatLit, NLAlib.ShiftedQR.findRitzCopy_writes_of_readBlock: the search words with exact natural literals.
Termination on any matrix is in NLAlib.Eigensolvers.ShiftedQR.RoundedFindTermination.
Declarations
- NLAlib.ShiftedQR.FindRoundedState
- NLAlib.ShiftedQR.IsHalfTau
- NLAlib.ShiftedQR.comptauHalf
- NLAlib.ShiftedQR.comptauHalf_isHalfTau
- NLAlib.ShiftedQR.findRitzCopy_writes_of_readBlock
- NLAlib.ShiftedQR.findRitzDecision_writes_of_exactNatLit
- NLAlib.ShiftedQR.findRitzInitialize_writes_of_exactNatLit
- NLAlib.ShiftedQR.findRounded
- NLAlib.ShiftedQR.findRoundedLevel
- NLAlib.ShiftedQR.findRoundedNorms
- NLAlib.ShiftedQR.findRoundedWithScratch
- NLAlib.ShiftedQR.findRounded_writes
- NLAlib.ShiftedQR.findRounded_writes_choice
- NLAlib.ShiftedQR.flatMap_flatten_replicate
- NLAlib.ShiftedQR.readsOnly_findRoundedState
- NLAlib.ShiftedQR.repeatBlock
- NLAlib.ShiftedQR.repeatBlock_writes
- NLAlib.ShiftedQR.stepComptau
- NLAlib.ShiftedQR.stepComptau_writes