Skip to content

givens

linear-algebra · scripts/linear-algebra/givens.m

GIVENS  2-by-2 Givens rotation (Octave name).
  G = GIVENS(X1, X2)
  [G, Y] = GIVENS(X1, X2)
  Wraps __givens__. G is [c s; -s c] with c = X1/r, s = X2/r,
  r = hypot(X1, X2). Optional Y is the rotated vector [r; 0].
  MATLAB has no public givens; portable code uses PLANEROT([X1; X2]).
  Unmarked MATLAB-mode scripts that never call this name are unaffected.

  See also PLANEROT, QR.