NLA-lib Explorer

NLAlib.Ops.StoredOperator.cooMatrix

Library · def

A fixed coordinate pattern and its supplied values define a rectangular matrix. Repeated coordinates add. Coordinates outside the current shape contribute no entry.

NLAlib.Ops.StoredOperator.cooMatrix {K : Type} [Semiring K] (pattern : List (ℕ × ℕ)) (rows cols : ℕ)
  (data : List K) : Matrix (Fin rows) (Fin cols) K

Full source on GitHub

Import NLAlib.Ops.Catalog.StoredOperator.