In numerical linear algebra, a Jacobi rotation is a rotation, Qkℓ, of a 2-dimensional linear subspace of an n-dimensional inner product space, chosen to zero a symmetric pair of off-diagonal entries of an n×n real symmetric matrix, A. It is the core operation in the Jacobi eigenvalue algorithm, which is numerically stable and well-suited to implementation on parallel processors .
Formulation The Jacobi rotation is applied as a similarity transformation:
A↦QkℓTAQkℓ=A′. [∗⋯∗⋱akk⋯akℓ⋮⋮⋱⋮⋮aℓk⋯aℓℓ⋱∗⋯∗]→[∗⋯∗⋱a'kk⋯0⋮⋮⋱⋮⋮0⋯a'ℓℓ⋱∗⋯∗]. Only rows k and ℓ and columns k and ℓ of A will be affected, and that A′ will remain symmetric. Also, an explicit matrix for Qkℓ is rarely computed; instead, auxiliary values are computed and A is updated in an efficient and numerically stable way. However, for reference, we may write the matrix as
Qkℓ=[1⋱0c⋯s⋮⋱⋮−s⋯c0⋱1]. That is, Qkℓ is an identity matrix except for four entries, two on the diagonal (qkk and qℓℓ, both equal to c) and two symmetrically placed off the diagonal (qkℓ and qℓk, equal to s and −s, respectively), where c = cos θ and s = sin θ for some angle θ. This is the same matrix as defines a Givens rotation, but for Jacobi rotations the choice of angle is different (very roughly half as large), since the rotation is applied on both sides simultaneously. It is not necessary to calculate the angle itself to apply the rotation. Using Kronecker delta notation, the matrix entries can be written:
qij=δij+(δikδjk+δiℓδjℓ)(c−1)+(δikδjℓ−δiℓδjk)s. Suppose h is an index other than k or ℓ (which must themselves be distinct). Then the similarity update produces, algebraically:
a'hk=a'kh=cahk−sahℓ a'hℓ=a'ℓh=cahℓ+sahk a'kℓ=a'ℓk=(c2−s2)akℓ+sc(akk−aℓℓ)=0 a'kk=c2akk+s2aℓℓ−2scakℓ a'ℓℓ=s2akk+c2aℓℓ+2scakℓ.
The 2X2 Symmetric Schur Decomposition The process of performing a Jacobi rotation involves solving the following expression in terms of rotation angle, θ. [a'kka'kla'lka'll]=[cos(θ)sin(θ)−sin(θ)cos(θ)]T[akkaklalkall][cos(θ)sin(θ)−sin(θ)cos(θ)] If we let c=cos(θ) and s=sin(θ), then [a'kka'kla'lka'll]=[cs−sc]T[akkaklalkall][cs−sc] and the matrix entry a'kl, reduces to, a'kl=akl(c2−s2)+(akk−all)cs. The Schur decomposition determines the rotation angle angle, θ, or more conveniently, sin(θ) and cos(θ), needed for the Jacobi rotation to set any a'kl to 0 when rotating on matrix entry (k,l), and yields the following expression when performing the matrix operation above, a'kl=0=akl(c2−s2)+(akk−all)cs. Further algebraic manipulation with t=tan(θ) yields, 0=(c2−s2)cs+(akk−all)akl0=cs−sc+akk−allakl0=1t−t1+akk−allakl0=1−t2+takk−allakl. Then, define τ=−akk−all2akl the solution expression is then, t2+2τt−1=0. and t=−τ±1+τ2 . It is important to use the smaller of the two roots to insure a minimal angle solution is used. c and s may then be determine directly from θ or more conveniently from the well known trigonometric identity expressions, c=1/1+t2s=tc Therefore, the rotation angle, θ, never needs to be explicitly computed, and the Jacobi rotation may be performed with the three values k, ℓ, and t.
Half angle modifications Although we now could use the algebraic update equations given previously, it may be preferable to rewrite them using trigonometric half angle identities. Let:
ρ=tan(θ2)=1−cs Then the revised update equations are:
a'hk=a'kh=ahk−s(ahℓ+ρahk) a'hℓ=a'ℓh=ahℓ+s(ahk−ρahℓ) a'kℓ=a'ℓk=0 a'kk=akk−takℓ a'ℓℓ=aℓℓ+takℓ
… excerpt ends here. Continue reading the full article.