NLA-lib Explorer

NLAlib.Ops.StoredCOO.satisfies_matvec

Library · theorem

The scalar leaf realizes the declared COO matrix-vector contract: a consequence of the judgment of its routine. The pattern is fixed before runtime dimensions and values; the output-separation admission is spatial.

NLAlib.Ops.StoredCOO.satisfies_matvec {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {𝕜 : Type}
  [RCLike 𝕜] {I : Ops.Interp Op Tst 𝕜} (hS : Ops.IsScalar Ops.RCLikeBlas.machine I)
  (pattern : List (ℕ × ℕ)) :
  (Ops.StoredCOO.matvecRoutine pattern).impl.Satisfies I Ops.Mode.total
    ((Ops.StoredOperator.cooFunctions pattern Ops.StoredOperatorOp.matvec).rel.spec
      (Ops.StoredOperator.OutApart fun x x_1 ↦ pattern.length))

Full source on GitHub

Import NLAlib.Ops.Profiles.StoredCOO.