NLA-lib Explorer

NLAlib.MGS.normalize

Library · def

Normalize a nonzero residual, leaving an exactly zero residual unchanged. t[0] and t[1] hold zero and the Hermitian squared norm respectively.

NLAlib.MGS.normalize {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.