NLA-lib Explorer

NLAlib.Ops.sumPairwiseRoutine_implements

Library · theorem

The routine of pairwise summation implements the contract of the operation sum, the operands of the routine being the input followed by the output.

NLAlib.Ops.sumPairwiseRoutine_implements {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Inhabited K] (dec : K → ℝ) (e : ℕ → ℝ) (ok : ℕ → Prop) :
  Ops.sumPairwiseRoutine.Implements (Ops.sumRel dec e) (Ops.OutApart ok) fun ins outs ↦ ins ++ outs

Full source on GitHub

Import NLAlib.Ops.Blas.Sum.