NLA-lib Explorer

NLAlib.Ops.PairMatrix.body_copy_eq_frame

Library · theorem

The named copy program is definitionally the generic unary-map frame, so the builder introduces no new execution mechanism and retains the caller's explicit offsets.

NLAlib.Ops.PairMatrix.body_copy_eq_frame {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] :
  Ops.PairMatrix.copy =
    Ops.Stmt.frame [Ops.IExp.const 2 * (Ops.IExp.var 0 * Ops.IExp.var 1)]
      [{ buf := 0, off := Ops.IExp.var 2 }, { buf := 1, off := Ops.IExp.var 3 }]
      (Ops.unaryMap (Ops.Has.inj Ops.ScalarOp.copy))

Full source on GitHub

Import NLAlib.Ops.Blas.Matrix.