NLA-lib Explorer

NLAlib.Ops.Examples.mgs

Library · def

Modified Gram–Schmidt: orthogonalise w against the k columns of Q, in place, and write the k coefficients and the norm in R. Two inputs Q, w and two outputs w, R. Index variables: n, k, the offsets of Q, w, w, R, then the loop variable; buffer variables: Q, w, w, R, then the scratch cell.

NLAlib.Ops.Examples.mgs {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] :
  Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Ops.Examples.GramSchmidt.