NLA-lib Explorer

NLAlib.Ops.StoredCOO.matvecRoutine_meets

Library · theorem

The scalar COO leaf meets the specification read off the COO matrix-vector relation. The pattern is fixed before runtime dimensions and values; every coordinate pattern is admitted, out-of-shape entries are ignored and repeated coordinates add. One scoped scalar temporary is released before returning.

NLAlib.Ops.StoredCOO.matvecRoutine_meets {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).Meets I
    (Ops.Routine.Spec.ofRel
      (Ops.StoredOperator.cooFunctions pattern Ops.StoredOperatorOp.matvec).rel fun x ↦ True)

Full source on GitHub

Import NLAlib.Ops.Profiles.StoredCOO.