LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
slartv.f
Go to the documentation of this file.
1*> \brief \b SLARTV applies a vector of plane rotations with real cosines and real sines to the elements of a pair of vectors.
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8*> Download SLARTV + dependencies
9*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/slartv.f">
10*> [TGZ]</a>
11*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/slartv.f">
12*> [ZIP]</a>
13*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/slartv.f">
14*> [TXT]</a>
15*
16* Definition:
17* ===========
18*
19* SUBROUTINE SLARTV( N, X, INCX, Y, INCY, C, S, INCC )
20*
21* .. Scalar Arguments ..
22* INTEGER INCC, INCX, INCY, N
23* ..
24* .. Array Arguments ..
25* REAL C( * ), S( * ), X( * ), Y( * )
26* ..
27*
28*
29*> \par Purpose:
30* =============
31*>
32*> \verbatim
33*>
34*> SLARTV applies a vector of real plane rotations to elements of the
35*> real vectors x and y. For i = 1,2,...,n
36*>
37*> ( x(i) ) := ( c(i) s(i) ) ( x(i) )
38*> ( y(i) ) ( -s(i) c(i) ) ( y(i) )
39*> \endverbatim
40*
41* Arguments:
42* ==========
43*
44*> \param[in] N
45*> \verbatim
46*> N is INTEGER
47*> The number of plane rotations to be applied.
48*> \endverbatim
49*>
50*> \param[in,out] X
51*> \verbatim
52*> X is REAL array,
53*> dimension (1+(N-1)*INCX)
54*> The vector x.
55*> \endverbatim
56*>
57*> \param[in] INCX
58*> \verbatim
59*> INCX is INTEGER
60*> The increment between elements of X. INCX > 0.
61*> \endverbatim
62*>
63*> \param[in,out] Y
64*> \verbatim
65*> Y is REAL array,
66*> dimension (1+(N-1)*INCY)
67*> The vector y.
68*> \endverbatim
69*>
70*> \param[in] INCY
71*> \verbatim
72*> INCY is INTEGER
73*> The increment between elements of Y. INCY > 0.
74*> \endverbatim
75*>
76*> \param[in] C
77*> \verbatim
78*> C is REAL array, dimension (1+(N-1)*INCC)
79*> The cosines of the plane rotations.
80*> \endverbatim
81*>
82*> \param[in] S
83*> \verbatim
84*> S is REAL array, dimension (1+(N-1)*INCC)
85*> The sines of the plane rotations.
86*> \endverbatim
87*>
88*> \param[in] INCC
89*> \verbatim
90*> INCC is INTEGER
91*> The increment between elements of C and S. INCC > 0.
92*> \endverbatim
93*
94* Authors:
95* ========
96*
97*> \author Univ. of Tennessee
98*> \author Univ. of California Berkeley
99*> \author Univ. of Colorado Denver
100*> \author NAG Ltd.
101*
102*> \ingroup lartv
103*
104* =====================================================================
105 SUBROUTINE slartv( N, X, INCX, Y, INCY, C, S, INCC )
106*
107* -- LAPACK auxiliary routine --
108* -- LAPACK is a software package provided by Univ. of Tennessee, --
109* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
110*
111* .. Scalar Arguments ..
112 INTEGER INCC, INCX, INCY, N
113* ..
114* .. Array Arguments ..
115 REAL C( * ), S( * ), X( * ), Y( * )
116* ..
117*
118* =====================================================================
119*
120* .. Local Scalars ..
121 INTEGER I, IC, IX, IY
122 REAL XI, YI
123* ..
124* .. Executable Statements ..
125*
126 ix = 1
127 iy = 1
128 ic = 1
129 DO 10 i = 1, n
130 xi = x( ix )
131 yi = y( iy )
132 x( ix ) = c( ic )*xi + s( ic )*yi
133 y( iy ) = c( ic )*yi - s( ic )*xi
134 ix = ix + incx
135 iy = iy + incy
136 ic = ic + incc
137 10 CONTINUE
138 RETURN
139*
140* End of SLARTV
141*
142 END
subroutine slartv(n, x, incx, y, incy, c, s, incc)
SLARTV applies a vector of plane rotations with real cosines and real sines to the elements of a pair...
Definition slartv.f:106