NLAlib.ShiftedQR.optimalTest
Library · def
Optimal ([BanksGarzaVargasSrivastava2022, §4]): for the order-n matrix A, the k shifts stored as pairs at S and the threshold factor C (the word 0.999\theta^k), the flag F is the literal 1 if the rounded \|\mathrm{fl}(\mathbf{e}_n^{\mathsf{T}}p(\mathbf{A}))\| is below the rounded c\,\psi_k(\mathbf{A})^k, and 0 otherwise. All scratch is scoped. The interface is [n, k] (A, S, C) → (F).
NLAlib.ShiftedQR.optimalTest {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.CmpTst Tst] :
Ops.Stmt Op TstImport NLAlib.Eigensolvers.ShiftedQR.RoundedRitz.