NLA-lib Explorer

NLAlib.Ops.Examples.cgsRoutine_implements

Library · theorem

The routine of cgs implements its contract: its operands are the first input followed by the outputs.

NLAlib.Ops.Examples.cgsRoutine_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.cgsRoutine.Implements (Ops.Examples.cgsRel dec ε) (Ops.Examples.CgsOperands ok)
    fun ins outs ↦ List.take 1 ins ++ outs

Full source on GitHub

Import NLAlib.Ops.Examples.CgsQR.