NLAlib.planeRotation
Library ยท def
The plane rotation in the plane of \mathbf{u} and \mathbf{v} with cosine c and sine s (real): \mathbf{I} + (c - 1)(\mathbf{u}\mathbf{u}^{\mathsf{H}} + \mathbf{v}\mathbf{v}^{\mathsf{H}}) + s(\mathbf{u}\mathbf{v}^{\mathsf{H}} - \mathbf{v}\mathbf{u}^{\mathsf{H}})\,. It is a rotation when \mathbf{u}, \mathbf{v} are orthonormal and c^2 + s^2 = 1; for other arguments it is just this matrix. [GolubVanLoan2013, ยง5.1.8]; there for standard basis vectors (Givens rotations).
NLAlib.planeRotation.{u_1, u_2} {๐ : Type u_1} [RCLike ๐] {n : Type u_2} [DecidableEq n]
(u v : n โ ๐) (c s : โ) : Matrix n n ๐Import NLAlib.Matrix.Basic.PlaneRotation.