A Jacobi rotation matrix is a matrix used in the Jacobi transformation method of diagonalizing matrices. The
Jacobi rotation matrix contains 1s along the diagonal,
except for the two elements
in rows and columns
and
. In addition, all off-diagonal
elements are zero except the elements
and
. The rotation angle
for an initial matrix
is chosen such that
Then the corresponding Jacobi rotation matrix which annihilates the off-diagonal element
is