NLA-lib Explorer

NLAlib.householder_mulVec

Library · theorem

The action of the reflector \mathbf{H} of \mathbf{v}: \mathbf{H}\mathbf{x} = \mathbf{x} - (2\, \mathbf{v}^{\mathsf{H}}\mathbf{x} / \|\mathbf{v}\|^2) \mathbf{v}.

NLAlib.householder_mulVec.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {m : Type u_2} [Fintype m]
  [DecidableEq m] (v x : m → 𝕜) :
  householder v *ᵥ x = x - ↑(2 / ‖WithLp.toLp 2 v‖ ^ 2) • (star v ⬝ᵥ x) • v

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Householder.