NLA-lib Explorer

NLAlib.Krylov.GolubKahan.Band.stmtCost_step

Library · theorem

The static count of block step j at the dimensions (m, n, \mathbf{b}): b products with \mathbf{A}, one basis extension at [m, j * b, b], b products with \mathbf{A}^{\mathsf{H}} and one basis extension at [n, (j + 1) * b, b], for all offsets of the five operands.

NLAlib.Krylov.GolubKahan.Band.stmtCost_step {Op Tst : Type} [Ops.Has Ops.OrthOp Op]
  [Ops.Has Ops.OperatorPairOp Op] (m n b j u v r s w : ℕ) :
  Ops.stmtCost Krylov.GolubKahan.Band.step [m, n, b, j, u, v, r, s, w] =
    b • Ops.Count.one (Ops.Has.inj Ops.OperatorPairOp.matvec) [m, n] +
          Ops.Count.one (Ops.Has.inj Ops.OrthOp.extend) [m, j * b, b] +
        b • Ops.Count.one (Ops.Has.inj Ops.OperatorPairOp.rmatvec) [n, m] +
      Ops.Count.one (Ops.Has.inj Ops.OrthOp.extend) [n, (j + 1) * b, b]

Full source on GitHub

Import NLAlib.Krylov.GolubKahan.Band.Certification.