NLA-lib Explorer

NLAlib.Schur.checkDecide

Library · def

The decision of the check: from the norms \hat r, \hat a, \hat w, \hat t in S and the words \theta, \kappa in P, the guard \hat g = \mathrm{fl}(\mathrm{fl}(\mathrm{fl}(\hat w\hat w)\hat t)\kappa) into S[2], \mathrm{fl}(\hat r + \hat g) into S[0], \mathrm{fl}(\hat a\theta) into S[1], and the flag: the literal 0 if the first is at most the second (an exact comparison of the two cells), the literal 1 otherwise. The interface is [] (S, P) → (S, Fl). A fragment of the tree of NLAlib.Schur.schurResidualCheck.

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

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.ResidualCheck.