1 /* srot.f -- translated by f2c (version 20061008).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
10 http://www.netlib.org/f2c/libf2c.zip
16 /* Subroutine */ int srot_(integer *n, real *sx, integer *incx, real *sy,
17 integer *incy, real *c__, real *s)
19 /* System generated locals */
26 /* .. Scalar Arguments .. */
28 /* .. Array Arguments .. */
34 /* applies a plane rotation. */
39 /* jack dongarra, linpack, 3/11/78. */
40 /* modified 12/3/93, array(1) declarations changed to array(*) */
43 /* .. Local Scalars .. */
45 /* Parameter adjustments */
53 if (*incx == 1 && *incy == 1) {
57 /* code for unequal increments or equal increments not equal */
63 ix = (-(*n) + 1) * *incx + 1;
66 iy = (-(*n) + 1) * *incy + 1;
69 for (i__ = 1; i__ <= i__1; ++i__) {
70 stemp = *c__ * sx[ix] + *s * sy[iy];
71 sy[iy] = *c__ * sy[iy] - *s * sx[ix];
79 /* code for both increments equal to 1 */
83 for (i__ = 1; i__ <= i__1; ++i__) {
84 stemp = *c__ * sx[i__] + *s * sy[i__];
85 sy[i__] = *c__ * sy[i__] - *s * sx[i__];