NLA-lib Explorer

NLAlib.Schur.schurResidualCheck

Library · def

The residual check of a Schur form: zero the strict lower triangle of \mathbf{T} (NLAlib.Schur.zeroStrictLower), form the stored residual \mathbf{D} of \mathbf{A}_0 - \mathbf{U}\mathbf{T}\mathbf{U}^{\mathsf{H}} (NLAlib.Schur.residualWords), the rounded Frobenius norms \hat r of \mathbf{D}, \hat a of \mathbf{A}_0, \hat w of \mathbf{U} and \hat t of \mathbf{T} (NLAlib.Schur.checkNorms), and write the flag 0 if \mathrm{fl}(\hat r + \hat g) \le \mathrm{fl}(\theta\hat a) for the guard \hat g = \mathrm{fl}(\mathrm{fl}(\hat w^2)\hat t\kappa) of the rounding of the products, and 1 otherwise (NLAlib.Schur.checkDecide). The words are P[0] = \theta and P[1] = \kappa. The interface is [N] (A0, U, T, P) → (T, Fl).

NLAlib.Schur.schurResidualCheck {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] : Ops.Routine O Q

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.ResidualCheck.