sroti - Apply an indexed Givens rotation.
SUBROUTINE SROTI(NZ, X, INDX, Y, C, S)
INTEGER NZ INTEGER INDX(*) REAL C, S REAL X(*), Y(*)
SUBROUTINE SROTI_64(NZ, X, INDX, Y, C, S)
INTEGER*8 NZ INTEGER*8 INDX(*) REAL C, S REAL X(*), Y(*)
F95 INTERFACE SUBROUTINE ROTI([NZ], X, INDX, Y, C, S)
INTEGER :: NZ INTEGER, DIMENSION(:) :: INDX REAL :: C, S REAL, DIMENSION(:) :: X, Y
SUBROUTINE ROTI_64([NZ], X, INDX, Y, C, S)
INTEGER(8) :: NZ INTEGER(8), DIMENSION(:) :: INDX REAL :: C, S REAL, DIMENSION(:) :: X, Y
SROTI - Applies a Givens rotation to a sparse vector x stored in compressed form and another vector y in full storage form
do i = 1, n temp = -s * x(i) + c * y(indx(i)) x(i) = c * x(i) + s * y(indx(i)) y(indx(i)) = temp enddo