NLA-lib Explorer

NLAlib.Ops.Examples.mgsRoutine_implements

Library · theorem

The routine of mgs implements its contract: its operands are the inputs followed by the second output.

NLAlib.Ops.Examples.mgsRoutine_implements {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Inhabited K] (dec : K → ℝ) (ε : Ops.Blas1Err) (ok : ℕ → Prop) :
  Ops.Examples.mgsRoutine.Implements (Ops.Examples.mgsRel dec ε) (Ops.Examples.MgsOperands ok)
    fun ins outs ↦ ins ++ List.drop 1 outs

Full source on GitHub

Import NLAlib.Ops.Examples.GramSchmidt.