NLA-lib Explorer

NLAlib.Ops.Examples.mulAddMixed

Library · def

z := x y + w, the product in the precision Lo and the sum in the precision Hi. Index variables: the offsets of x, y, w, z; buffer variables: x, y, w, z, then a scratch cell.

NLAlib.Ops.Examples.mulAddMixed {Op Tst : Type} (Lo Hi : Type)
  [Ops.Has (Ops.Tagged Lo Ops.ScalarOp) Op] [Ops.Has (Ops.Tagged Hi Ops.ScalarOp) Op]
  [Ops.Has (Ops.CastOp Lo Hi) Op] : Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Ops.Examples.Mixed.