Given the cosine and sine for a rotation, form the rotation matrix.
Given the cosine and sine for a rotation, form the rotation matrix.
the results of a rotation
Rotate vectors 'x' and 'y' using cosine 'cs' and sine 'sn'.
Rotate vectors 'x' and 'y' using cosine 'cs' and sine 'sn'.
the number of elements involved in rotation
the first vector
the second vector
the cosine for the rotation
the sine for the rotation
BLAS SUBROUTINE DROT (N, DX, INCX, DY, INCY, C, S) restriction: INCX = INCY = 1
Rotate column vectors with indices 'jx' and 'jy' using cosine 'cs' and sine 'sn'.
Rotate column vectors with indices 'jx' and 'jy' using cosine 'cs' and sine 'sn'.
the number of elements involved in rotation
the matrix containing the columns to be rotated
the index for the first column vector
the index for the second column vector
the cosine for the rotation
the sine for the rotation
BLAS SUBROUTINE DROT (N, DX, INCX, DY, INCY, C, S) restriction: INCX = INCY = 1
Rotate the vector 'x to vector 'y' to make 'y(1) = 0'.
Rotate the vector 'x to vector 'y' to make 'y(1) = 0'.
the vector to be rotated
Rotate vector '[f, g]' to vector '[r, 0]' to make the second element 0.
Rotate vector '[f, g]' to vector '[r, 0]' to make the second element 0.
the first element of the vector to be rotated
the second element of the vector to be rotated
LAPACK SUBROUTINE DLARTG (F, G, CS, SN, R)
Rotate the vectors in matrix 'a'.
Rotate the vectors in matrix 'a'.
whether to apply rotation from the left (true) or right (false)
whether to loop in the forward (true) or backward (false) direction
the relevant number of rows
the relevant number of columns
the array of cosines
the index offset for the array of cosines
the array of sines
the index offset for the array of sines
the matrix to rotate
LAPACK SUBROUTINE DLASR (SIDE, PIVOT, DIRECT, M, N, C, S, A, LDA) restriction: PIVOT = 'v'
The
Rotation
object provides methods for rotating in a plane.[ cs sn ] . [ f ] = [ r ] where cs2 + sn2 = 1 [ -sn cs ] [ g ] [ 0 ]