NLAlib.exists_givens_mulVec_apply_eq_zero
Library Ā· theorem
Clearing an entry: for every vector \mathbf{x} and i \ne j there is a unitary Givens rotation (\lvert c \rvert^2 + \lvert s \rvert^2 = 1) that sends coordinate j to zero and coordinate i to \sqrt{\lvert \mathbf{x}_i \rvert^2 + \lvert \mathbf{x}_j \rvert^2}.
NLAlib.exists_givens_mulVec_apply_eq_zero.{u_1, u_3} {š : Type u_1} [RCLike š] {n : Type u_3}
[Fintype n] [DecidableEq n] {i j : n} (hij : i ā j) (x : n ā š) :
ā c s,
ācā ^ 2 + āsā ^ 2 = 1 ā§
(givens i j c s *ᵄ x) j = 0 ā§ (givens i j c s *ᵄ x) i = āā(āx iā ^ 2 + āx jā ^ 2)Import NLAlib.Matrix.Factorizations.Givens.