3 /* Subroutine */ int srot_(integer *n, real *sx, integer *incx, real *sy,
4 integer *incy, real *c__, real *s)
6 /* System generated locals */
13 /* .. Scalar Arguments .. */
15 /* .. Array Arguments .. */
21 /* applies a plane rotation. */
26 /* jack dongarra, linpack, 3/11/78. */
27 /* modified 12/3/93, array(1) declarations changed to array(*) */
30 /* .. Local Scalars .. */
32 /* Parameter adjustments */
40 if (*incx == 1 && *incy == 1) {
44 /* code for unequal increments or equal increments not equal */
50 ix = (-(*n) + 1) * *incx + 1;
53 iy = (-(*n) + 1) * *incy + 1;
56 for (i__ = 1; i__ <= i__1; ++i__) {
57 stemp = *c__ * sx[ix] + *s * sy[iy];
58 sy[iy] = *c__ * sy[iy] - *s * sx[ix];
66 /* code for both increments equal to 1 */
70 for (i__ = 1; i__ <= i__1; ++i__) {
71 stemp = *c__ * sx[i__] + *s * sy[i__];
72 sy[i__] = *c__ * sy[i__] - *s * sx[i__];