Choose the following consistent sign convention. The Givens rotation equals the identity matrix except for the block on coordinates :Thus it changes only the th and th coordinates of a vector. Write , . Its two-coordinate block satisfiesAll remaining coordinates are unchanged, so . Hence every such Givens rotation is an orthogonal matrix. With this convention the two-coordinate rotation matrix rotates through angle .
Let . If , choose so thatSuch an angle exists because the two ratios have squared sum one. Then the changed coordinates areAll other coordinates satisfy . If , both input coordinates are zero; take , giving the identity matrix on this pair. In all cases,This fixes a nonnegative retained coordinate and handles division by zero explicitly. For floating-point computation, the stable construction of a Givens rotation uses scaled Euclidean norm evaluation to avoid unnecessarily overflowing or underflowing the squares.
Articles by others on the same topic
There are currently no matching articles.