Plane rotations
Library · Source module
Plane rotations
NLAlib.planeRotation u v c s rotates the plane spanned by two orthonormal vectors \mathbf{u}, \mathbf{v} by the angle with cosine c and sine s, and fixes the orthogonal complement of that plane. With \mathbf{u}, \mathbf{v} standard basis vectors it is a Givens rotation.
Main definitions
* NLAlib.planeRotation: \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}}).
Main results
* NLAlib.hasOrthonormalCols_planeRotation: a plane rotation is unitary. * NLAlib.planeRotation_mulVec: its action on a vector.