Matrix.IsHermitian.hasGradientAt_rayleighQuotient
Library · theorem
Headline of eigenvalue-residual-bounds
Gradient of the Rayleigh quotient. For Hermitian \mathbf{A} and nonzero \mathbf{x} \in \Bbbk^n, let \rho(\mathbf{x}) = \operatorname{Re}(\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}) / \|\mathbf{x}\|_2^2. On the underlying real Euclidean space its gradient is \nabla \rho(\mathbf{x}) = \frac{2}{\|\mathbf{x}\|_2^2} (\mathbf{A}\mathbf{x} - \rho(\mathbf{x})\mathbf{x}). [TrefethenBau1997, (27.2), p. 203] gives the real symmetric case. Result: eigenvalue-residual-bounds
Matrix.IsHermitian.hasGradientAt_rayleighQuotient.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
{n : Type u_2} [Fintype n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) {x : EuclideanSpace 𝕜 n}
(hx : x ≠ 0) :
HasGradientAt (fun y ↦ rayleighQuotient A y.ofLp)
((2 / ‖x‖ ^ 2) • (WithLp.toLp 2 (A *ᵥ x.ofLp) - rayleighQuotient A x.ofLp • x)) xImport NLAlib.Matrix.Perturbation.Residual.