NLA-lib Explorer

NLAlib.MGS.normalizeGuard

Library · def

Divide by the positive square root of a stored nonzero squared norm. The guard compares t[1] with the zero stored in t[0] and leaves zero residuals alone.

NLAlib.MGS.normalizeGuard {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op]
  [Ops.Has Ops.CmpTst Tst] : Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Matrix.Factorizations.MGS.Alg.