HOME

TheInfoList



OR:

In
numerical linear algebra Numerical linear algebra, sometimes called applied linear algebra, is the study of how matrix operations can be used to create computer algorithms which efficiently and accurately provide approximate answers to questions in continuous mathematics ...
, a Jacobi rotation is a
rotation Rotation, or spin, is the circular movement of an object around a '' central axis''. A two-dimensional rotating object has only one possible central axis and can rotate in either a clockwise or counterclockwise direction. A three-dimensional ...
, ''Q''''k''ℓ, of a 2-dimensional linear subspace of an ''n-''dimensional
inner product space In mathematics, an inner product space (or, rarely, a Hausdorff pre-Hilbert space) is a real vector space or a complex vector space with an operation called an inner product. The inner product of two vectors in the space is a scalar, often ...
, chosen to zero a symmetric pair of off-
diagonal In geometry, a diagonal is a line segment joining two vertices of a polygon or polyhedron, when those vertices are not on the same edge. Informally, any sloping line is called diagonal. The word ''diagonal'' derives from the ancient Gree ...
entries of an ''n''×''n''
real Real may refer to: Currencies * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Music Albums * ''Real'' (L'Arc-en-Ciel album) (2000) * ''Real'' (Bright album) (201 ...
symmetric matrix In linear algebra, a symmetric matrix is a square matrix that is equal to its transpose. Formally, Because equal matrices have equal dimensions, only square matrices can be symmetric. The entries of a symmetric matrix are symmetric with ...
, ''A'', when applied as a similarity transformation: : A \mapsto Q_^T A Q_ = A' . \,\! : \begin & & & \cdots & & & * \\ & \ddots & & & & & \\ & & a_ & \cdots & a_ & & \\ \vdots & & \vdots & \ddots & \vdots & & \vdots \\ & & a_ & \cdots & a_ & & \\ & & & & & \ddots & \\ & & & \cdots & & & * \end \to \begin & & & \cdots & & & * \\ & \ddots & & & & & \\ & & a'_ & \cdots & 0 & & \\ \vdots & & \vdots & \ddots & \vdots & & \vdots \\ & & 0 & \cdots & a'_ & & \\ & & & & & \ddots & \\ & & & \cdots & & & * \end. It is the core operation in the
Jacobi eigenvalue algorithm In numerical linear algebra, the Jacobi eigenvalue algorithm is an iterative method for the calculation of the eigenvalues and eigenvectors of a real symmetric matrix (a process known as diagonalization). It is named after Carl Gustav Jacob Jacob ...
, which is
numerically stable In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms. The precise definition of stability depends on the context. One is numerical linear algebra and the other is algor ...
and well-suited to implementation on
parallel processor Parallel computing is a type of computation in which many calculations or processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. There are several different for ...
s . Only rows ''k'' and ℓ and columns ''k'' and ℓ of ''A'' will be affected, and that ''A'' will remain symmetric. Also, an explicit matrix for ''Q''''k''ℓ 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 : Q_ = \begin 1 & & & & & & \\ & \ddots & & & & 0 & \\ & & c & \cdots & s & & \\ & & \vdots & \ddots & \vdots & & \\ & & -s & \cdots & c & & \\ & 0 & & & & \ddots & \\ & & & & & & 1 \end . That is, ''Q''''k''ℓ is an identity matrix except for four entries, two on the diagonal (''q''''kk'' and ''q''ℓℓ, both equal to ''c'') and two symmetrically placed off the diagonal (''q''''k''ℓ and ''q''ℓ''k'', equal to ''s'' and −''s'', respectively). Here ''c'' = cos θ and ''s'' = sin θ for some angle θ; but to apply the rotation, the angle itself is not required. Using
Kronecker delta In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise: \delta_ = \begin 0 &\text i \neq j, \\ 1 ...
notation, the matrix entries can be written : q_ = \delta_ + (\delta_\delta_ + \delta_\delta_)(c-1) + (\delta_\delta_ - \delta_\delta_)s . \,\! Suppose ''h'' is an index other than ''k'' or ℓ (which must themselves be distinct). Then the similarity update produces, algebraically, : a'_ = a'_ = c a_ - s a_ \,\! : a'_ = a'_ = c a_ + s a_ \,\! : a'_ = a'_ = (c^2-s^2)a_ + sc (a_ - a_) = 0 \,\! : a'_ = c^2 a_ + s^2 a_ - 2 s c a_ \,\! : a'_ = s^2 a_ + c^2 a_ + 2 s c a_. \,\!


Numerically stable computation

To determine the quantities needed for the update, we must solve the off-diagonal equation for zero . This implies that : \frac = \frac . Set β to half of this quantity, : \beta = \frac . If ''a''''k''ℓ is zero we can stop without performing an update, thus we never divide by zero. Let ''t'' be tan θ. Then with a few trigonometric identities we reduce the equation to : t^2 + 2\beta t - 1 = 0 . \,\! For stability we choose the solution : t = \frac . From this we may obtain ''c'' and ''s'' as : c = \frac \,\! : s = c t \,\! Although we now could use the algebraic update equations given previously, it may be preferable to rewrite them. Let : \rho= \frac , so that ρ = tan(θ/2). Then the revised update equations are : a'_ = a'_ = a_ - s (a_ + \rho a_) \,\! : a'_ = a'_ = a_ + s (a_ - \rho a_) \,\! : a'_ = a'_ = 0 \,\! : a'_ = a_ - t a_ \,\! : a'_ = a_ + t a_ \,\! As previously remarked, we need never explicitly compute the rotation angle θ. In fact, we can reproduce the symmetric update determined by ''Q''''k''ℓ by retaining only the three values ''k'', ℓ, and ''t'', with ''t'' set to zero for a null rotation.


See also

*
Givens rotation In numerical linear algebra, a Givens rotation is a rotation in the plane spanned by two coordinates axes. Givens rotations are named after Wallace Givens, who introduced them to numerical analysts in the 1950s while he was working at Argonne Nation ...
*
Householder transformation In linear algebra, a Householder transformation (also known as a Householder reflection or elementary reflector) is a linear transformation that describes a reflection about a plane or hyperplane containing the origin. The Householder transformat ...


References

* {{DEFAULTSORT:Jacobi Rotation Numerical linear algebra