1 *> \brief \b DLARGV generates a vector of plane rotations with real cosines and real sines.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download DLARGV + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/dlargv.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/dlargv.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/dlargv.f">
21 * SUBROUTINE DLARGV( N, X, INCX, Y, INCY, C, INCC )
23 * .. Scalar Arguments ..
24 * INTEGER INCC, INCX, INCY, N
26 * .. Array Arguments ..
27 * DOUBLE PRECISION C( * ), X( * ), Y( * )
36 *> DLARGV generates a vector of real plane rotations, determined by
37 *> elements of the real vectors x and y. For i = 1,2,...,n
39 *> ( c(i) s(i) ) ( x(i) ) = ( a(i) )
40 *> ( -s(i) c(i) ) ( y(i) ) = ( 0 )
49 *> The number of plane rotations to be generated.
54 *> X is DOUBLE PRECISION array,
55 *> dimension (1+(N-1)*INCX)
56 *> On entry, the vector x.
57 *> On exit, x(i) is overwritten by a(i), for i = 1,...,n.
63 *> The increment between elements of X. INCX > 0.
68 *> Y is DOUBLE PRECISION array,
69 *> dimension (1+(N-1)*INCY)
70 *> On entry, the vector y.
71 *> On exit, the sines of the plane rotations.
77 *> The increment between elements of Y. INCY > 0.
82 *> C is DOUBLE PRECISION array, dimension (1+(N-1)*INCC)
83 *> The cosines of the plane rotations.
89 *> The increment between elements of C. INCC > 0.
95 *> \author Univ. of Tennessee
96 *> \author Univ. of California Berkeley
97 *> \author Univ. of Colorado Denver
100 *> \date September 2012
102 *> \ingroup doubleOTHERauxiliary
104 * =====================================================================
105 SUBROUTINE DLARGV( N, X, INCX, Y, INCY, C, INCC )
107 * -- LAPACK auxiliary routine (version 3.4.2) --
108 * -- LAPACK is a software package provided by Univ. of Tennessee, --
109 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
112 * .. Scalar Arguments ..
113 INTEGER INCC, INCX, INCY, N
115 * .. Array Arguments ..
116 DOUBLE PRECISION C( * ), X( * ), Y( * )
119 * =====================================================================
122 DOUBLE PRECISION ZERO, ONE
123 PARAMETER ( ZERO = 0.0D+0, ONE = 1.0D+0 )
125 * .. Local Scalars ..
126 INTEGER I, IC, IX, IY
127 DOUBLE PRECISION F, G, T, TT
129 * .. Intrinsic Functions ..
132 * .. Executable Statements ..
142 ELSE IF( F.EQ.ZERO ) THEN
146 ELSE IF( ABS( F ).GT.ABS( G ) ) THEN