NLAlib.Ops.EntryCodec.pair_matrix
Library · theorem
The pair matrix decoder reads real and imaginary words at adjacent column-major cells.
NLAlib.Ops.EntryCodec.pair_matrix {K : Type} [Inhabited K] (rows cols : ℕ) (xs : List K) :
(Ops.EntryCodec.pair K).matrix rows cols xs = fun i j ↦
(Ops.vec xs ((↑j * rows + ↑i) * 2), Ops.vec xs ((↑j * rows + ↑i) * 2 + 1))Import NLAlib.Ops.Logic.EntryLayout.