LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ zlacgv()

subroutine zlacgv ( integer n,
complex*16, dimension( * ) x,
integer incx )

ZLACGV conjugates a complex vector.

Download ZLACGV + dependencies [TGZ] [ZIP] [TXT]

Purpose:
!>
!> ZLACGV conjugates a complex vector of length N.
!> 
Parameters
[in]N
!>          N is INTEGER
!>          The length of the vector X.  N >= 0.
!> 
[in,out]X
!>          X is COMPLEX*16 array, dimension
!>                         (1+(N-1)*abs(INCX))
!>          On entry, the vector of length N to be conjugated.
!>          On exit, X is overwritten with conjg(X).
!> 
[in]INCX
!>          INCX is INTEGER
!>          The spacing between successive elements of X.
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 71 of file zlacgv.f.

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*16 X( * )
82* ..
83*
84* =====================================================================
85*
86* .. Local Scalars ..
87 INTEGER I, IOFF
88* ..
89* .. Intrinsic Functions ..
90 INTRINSIC dconjg
91* ..
92* .. Executable Statements ..
93*
94 IF( incx.EQ.1 ) THEN
95 DO 10 i = 1, n
96 x( i ) = dconjg( 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 ) = dconjg( x( ioff ) )
104 ioff = ioff + incx
105 20 CONTINUE
106 END IF
107 RETURN
108*
109* End of ZLACGV
110*
Here is the caller graph for this function: