NLA-lib Explorer

NLAlib.LinearSystems.Refinement.Rounded.round

Library · def

One round of three-precision refinement, a routine of NLAlib.LinearSystems.Refinement.Rounded.solve: the residual at the residual precision, cast to the working and then the factorization precision; forward and back substitution with the factor at the factorization precision; the correction cast to the working precision and added to the iterate there.

NLAlib.LinearSystems.Refinement.Rounded.round {Op Tst : Type}
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.FTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.WTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.Tagged LinearSystems.Refinement.Rounded.RTag Ops.ScalarOp) Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.FTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.FTag LinearSystems.Refinement.Rounded.WTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.WTag LinearSystems.Refinement.Rounded.RTag)
      Op]
  [Ops.Has (Ops.CastOp LinearSystems.Refinement.Rounded.RTag LinearSystems.Refinement.Rounded.WTag)
      Op] :
  Ops.Routine Op Tst

Full source on GitHub

Import NLAlib.LinearSystems.Refinement.Rounded.Solve.