NLA-lib Explorer

NLAlib.householderVector

Library ยท def

The Householder vector of \mathbf{x} at the coordinate i_0: \mathbf{x} + \omega \|\mathbf{x}\| \mathbf{e}_{i_0}, with the phase \omega = \mathbf{x}_{i_0} / \lvert \mathbf{x}_{i_0} \rvert, and \omega = 1 when \mathbf{x}_{i_0} = 0. The sign avoids cancellation. [GolubVanLoan2013, ยง5.1.3].

NLAlib.householderVector.{u_1, u_2} {๐•œ : Type u_1} [RCLike ๐•œ] {m : Type u_2} [Fintype m]
  [DecidableEq m] (x : m โ†’ ๐•œ) (iโ‚€ : m) : m โ†’ ๐•œ

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Householder.