NLAlib.givens_apply
Library · theorem
The entries of a Givens rotation in the plane (i, j), i \ne j: c, s in row i and -\bar{s}, \bar{c} in row j at the columns i, j, and the identity elsewhere. [GolubVanLoan2013, §5.1.8].
NLAlib.givens_apply.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [DecidableEq n] {i j : n}
(hij : i ≠ j) (c s : 𝕜) (a b : n) :
givens i j c s a b =
if a = i then if b = i then c else if b = j then s else 0
else
if a = j then if b = i then -star s else if b = j then star c else 0
else if a = b then 1 else 0Import NLAlib.Matrix.Factorizations.Givens.