NLA-lib Explorer

NLAlib.SpectralBisection.stmtPeak_sign_zero

Library · theorem

Matrix sign reserves two square pair matrices and five scalar cells. Neither the stopping loop nor its cap changes this allocation peak. Primitive workspace is excluded.

NLAlib.SpectralBisection.stmtPeak_sign_zero {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.IndexOp Op] [Ops.Has Ops.CmpTst Tst] (mm : Op) (n cap : ℕ) (offs : List ℕ) :
  Ops.stmtPeak (fun x x_1 ↦ 0) (Sign.program mm) ([n, cap] ++ offs) = 4 * (n * n) + 5

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Workspace.