NLA-lib Explorer

NLAlib.eigengap

Library ยท def

The eigengap below the k largest eigenvalues: \lambda_{k-1}(\mathbf{A}) - \lambda_k(\mathbf{A}) with eigenvalues indexed from 0, the gap that separates the leading k-dimensional eigenspace from the rest. The index is the dimension of that eigenspace. With truncated subtraction eigengap A 0 = 0, so a hypothesis 0 < eigengap A k already excludes k = 0.

NLAlib.eigengap.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_2} [Fintype n] (A : Matrix n n ๐•œ)
  (k : โ„•) : โ„

Full source on GitHub

Import NLAlib.Matrix.Spectral.Weyl.