NLA-lib Explorer

NLAlib.Krylov.CG.HSCG.solve

Library · def

Initialize CG from the right-hand side and starting vector, then perform the requested number of active Hestenes–Stiefel rounds. Dimensions are n,k; inputs are B,X; outputs are X,R,P, with X retained in place.

NLAlib.Krylov.CG.HSCG.solve {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op]
  [Ops.Has Ops.OperatorOp Op] : Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Krylov.CG.HSCG.Alg.