1 *> \brief \b DLARTV applies a vector of plane rotations with real cosines and real sines to the elements of a pair of vectors.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download DLARTV + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlartv.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlartv.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlartv.f">
21 * SUBROUTINE DLARTV( N, X, INCX, Y, INCY, C, S, INCC )
23 * .. Scalar Arguments ..
24 * INTEGER INCC, INCX, INCY, N
26 * .. Array Arguments ..
27 * DOUBLE PRECISION C( * ), S( * ), X( * ), Y( * )
36 *> DLARTV applies a vector of real plane rotations to elements of the
37 *> real vectors x and y. For i = 1,2,...,n
39 *> ( x(i) ) := ( c(i) s(i) ) ( x(i) )
40 *> ( y(i) ) ( -s(i) c(i) ) ( y(i) )
49 *> The number of plane rotations to be applied.
54 *> X is DOUBLE PRECISION array,
55 *> dimension (1+(N-1)*INCX)
62 *> The increment between elements of X. INCX > 0.
67 *> Y is DOUBLE PRECISION array,
68 *> dimension (1+(N-1)*INCY)
75 *> The increment between elements of Y. INCY > 0.
80 *> C is DOUBLE PRECISION array, dimension (1+(N-1)*INCC)
81 *> The cosines of the plane rotations.
86 *> S is DOUBLE PRECISION array, dimension (1+(N-1)*INCC)
87 *> The sines of the plane rotations.
93 *> The increment between elements of C and S. INCC > 0.
99 *> \author Univ. of Tennessee
100 *> \author Univ. of California Berkeley
101 *> \author Univ. of Colorado Denver
104 *> \date September 2012
106 *> \ingroup doubleOTHERauxiliary
108 * =====================================================================
109 SUBROUTINE DLARTV( N, X, INCX, Y, INCY, C, S, INCC )
111 * -- LAPACK auxiliary routine (version 3.4.2) --
112 * -- LAPACK is a software package provided by Univ. of Tennessee, --
113 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
116 * .. Scalar Arguments ..
117 INTEGER INCC, INCX, INCY, N
119 * .. Array Arguments ..
120 DOUBLE PRECISION C( * ), S( * ), X( * ), Y( * )
123 * =====================================================================
125 * .. Local Scalars ..
126 INTEGER I, IC, IX, IY
127 DOUBLE PRECISION XI, YI
129 * .. Executable Statements ..
137 X( IX ) = C( IC )*XI + S( IC )*YI
138 Y( IY ) = C( IC )*YI - S( IC )*XI