LAPACK
3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
clacgv.f
Go to the documentation of this file.
1
*> \brief \b CLACGV conjugates a complex vector.
2
*
3
* =========== DOCUMENTATION ===========
4
*
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
7
*
8
*> Download CLACGV + dependencies
9
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/clacgv.f">
10
*> [TGZ]</a>
11
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/clacgv.f">
12
*> [ZIP]</a>
13
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/clacgv.f">
14
*> [TXT]</a>
15
*
16
* Definition:
17
* ===========
18
*
19
* SUBROUTINE CLACGV( N, X, INCX )
20
*
21
* .. Scalar Arguments ..
22
* INTEGER INCX, N
23
* ..
24
* .. Array Arguments ..
25
* COMPLEX X( * )
26
* ..
27
*
28
*
29
*> \par Purpose:
30
* =============
31
*>
32
*> \verbatim
33
*>
34
*> CLACGV conjugates a complex vector of length N.
35
*> \endverbatim
36
*
37
* Arguments:
38
* ==========
39
*
40
*> \param[in] N
41
*> \verbatim
42
*> N is INTEGER
43
*> The length of the vector X. N >= 0.
44
*> \endverbatim
45
*>
46
*> \param[in,out] X
47
*> \verbatim
48
*> X is COMPLEX array, dimension
49
*> (1+(N-1)*abs(INCX))
50
*> On entry, the vector of length N to be conjugated.
51
*> On exit, X is overwritten with conjg(X).
52
*> \endverbatim
53
*>
54
*> \param[in] INCX
55
*> \verbatim
56
*> INCX is INTEGER
57
*> The spacing between successive elements of X.
58
*> \endverbatim
59
*
60
* Authors:
61
* ========
62
*
63
*> \author Univ. of Tennessee
64
*> \author Univ. of California Berkeley
65
*> \author Univ. of Colorado Denver
66
*> \author NAG Ltd.
67
*
68
*> \ingroup lacgv
69
*
70
* =====================================================================
71
SUBROUTINE
clacgv
( N, X, INCX )
72
*
73
* -- LAPACK auxiliary routine --
74
* -- LAPACK is a software package provided by Univ. of Tennessee, --
75
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
76
*
77
* .. Scalar Arguments ..
78
INTEGER
INCX, N
79
* ..
80
* .. Array Arguments ..
81
COMPLEX
X( * )
82
* ..
83
*
84
* =====================================================================
85
*
86
* .. Local Scalars ..
87
INTEGER
I, IOFF
88
* ..
89
* .. Intrinsic Functions ..
90
INTRINSIC
conjg
91
* ..
92
* .. Executable Statements ..
93
*
94
IF
( incx.EQ.1 )
THEN
95
DO
10 i = 1, n
96
x( i ) = conjg( x( i ) )
97
10
CONTINUE
98
ELSE
99
ioff = 1
100
IF
( incx.LT.0 )
101
$ ioff = 1 - ( n-1 )*incx
102
DO
20 i = 1, n
103
x( ioff ) = conjg( x( ioff ) )
104
ioff = ioff + incx
105
20
CONTINUE
106
END IF
107
RETURN
108
*
109
* End of CLACGV
110
*
111
END
clacgv
subroutine clacgv(n, x, incx)
CLACGV conjugates a complex vector.
Definition
clacgv.f:72
SRC
clacgv.f
Generated on Mon Jan 20 2025 17:18:08 for LAPACK by
1.11.0