NLA-lib Explorer

NLAlib.rayleighQuotient

Library ยท def

The Rayleigh quotient \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) / \|\mathbf{x}\|^2 of a square matri\mathbf{x} at a \mathbf{v}ector. Real-\mathbf{v}alued; its \mathbf{v}alue at \mathbf{x} = \mathbf{0} is 0. For \mathbf{H}ermitian \mathbf{A} nothing is lost by taking the real part.

NLAlib.rayleighQuotient.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_3} [Fintype n]
  (A : Matrix n n ๐•œ) (x : n โ†’ ๐•œ) : โ„

Full source on GitHub

Import NLAlib.Matrix.Basic.QuadForm.