NLA-lib Explorer

NLAlib.Ops.RCLikeScalar.table_peak_zero

Library · theorem

Every operation in the scalar BLAS table needs at most one stored temporary, independently of its runtime dimensions, aliases and data.

NLAlib.Ops.RCLikeScalar.table_peak_zero {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.StarOp Op] (o : Ops.Blas1Op) (idx : List ℕ) :
  match Ops.RCLikeScalar.table o with
  | Sum.inl r => Ops.stmtPeak (fun x x_1 ↦ 0) r.body idx ≤ 1
  | Sum.inr val => False

Full source on GitHub

Import NLAlib.Ops.Profiles.RCLikeScalar.