NLA-lib Explorer

NLAlib.givensOf

Library ยท def

The clearing rotation of \mathbf{x} in the plane (i, j): the Givens rotation with the coefficients of (\mathbf{x}_i, \mathbf{x}_j), which sends \mathbf{x}_j to 0 and \mathbf{x}_i to \sqrt{\lvert\mathbf{x}_i\rvert^2 + \lvert\mathbf{x}_j\rvert^2}. [GolubVanLoan2013, ยง5.1.8].

NLAlib.givensOf.{u_1, u_3} {๐•œ : Type u_1} [RCLike ๐•œ] {n : Type u_3} [DecidableEq n] (x : n โ†’ ๐•œ)
  (i j : n) : Matrix n n ๐•œ

Full source on GitHub

Import NLAlib.Matrix.Factorizations.Givens.