NLA-lib Explorer

NLAlib.householder_mulVec_householderVector

Library Ā· theorem

The Householder reflector clears a vector: for the Householder vector \mathbf{v} of \mathbf{x} at i_0 and its reflector \mathbf{H}, \mathbf{H}\mathbf{x} = \mathbf{x} - \mathbf{v}, a multiple of \mathbf{e}_{i_0}.

NLAlib.householder_mulVec_householderVector.{u_1, u_2} {š•œ : Type u_1} [RCLike š•œ] {m : Type u_2}
  [Fintype m] [DecidableEq m] (x : m → š•œ) (iā‚€ : m) :
  householder (householderVector x iā‚€) *ᵄ x = x - householderVector x iā‚€

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Householder.