NLA-lib Explorer

NLAlib.ShiftedQR.searchGridWithScratch_workspace_le

Library · theorem

Under the declared QR resource model, supported primitive workspace is added only once. The premise bounds actual call shapes rather than assuming that spectral kernels are free.

NLAlib.ShiftedQR.searchGridWithScratch_workspace_le
  (kernelWork kernelWorkspace : ShiftedQR.EigenvalueKernelOp → List ℕ → ℕ)
  (n k D primitiveWorkspace : ℕ) (offs : List ℕ) (hOffsets : offs.length = 9)
  (hPrimitive :
    (Ops.stmtCost ShiftedQR.searchGridWithScratch (n :: k :: D :: offs)).BoundsWorkspace
      (ShiftedQR.resources kernelWork kernelWorkspace).workspace primitiveWorkspace) :
  Ops.stmtPeak (ShiftedQR.resources kernelWork kernelWorkspace).workspace
      ShiftedQR.searchGridWithScratch (n :: k :: D :: offs) ≤
    4 * (n * n) + 14 + primitiveWorkspace

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.SearchWorkspace.