NLA-lib Explorer

NLAlib.planeRotation_mulVec

Library · theorem

The action of a plane rotation \mathbf{R} on a vector: \mathbf{R}\mathbf{x} = \mathbf{x} + (c - 1)\bigl((\mathbf{u}^{\mathsf{H}}\mathbf{x})\mathbf{u} + (\mathbf{v}^{\mathsf{H}}\mathbf{x}) \mathbf{v}\bigr) + s\bigl((\mathbf{v}^{\mathsf{H}}\mathbf{x})\mathbf{u} - (\mathbf{u}^{\mathsf{H}}\mathbf{x})\mathbf{v}\bigr)\,.

NLAlib.planeRotation_mulVec.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [DecidableEq n]
  [Fintype n] (u v x : n → 𝕜) (c s : ℝ) :
  planeRotation u v c s *ᵥ x =
    x + (↑c - 1) • ((star u ⬝ᵥ x) • u + (star v ⬝ᵥ x) • v) +
      ↑s • ((star v ⬝ᵥ x) • u - (star u ⬝ᵥ x) • v)

Full source on GitHub

Import NLAlib.Matrix.Basic.PlaneRotation.