LAPACK  3.6.1
LAPACK: Linear Algebra PACKage
subroutine zlapll ( integer  N,
complex*16, dimension( * )  X,
integer  INCX,
complex*16, dimension( * )  Y,
integer  INCY,
double precision  SSMIN 
)

ZLAPLL measures the linear dependence of two vectors.

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

Purpose:
 Given two column vectors X and Y, let

                      A = ( X Y ).

 The subroutine first computes the QR factorization of A = Q*R,
 and then computes the SVD of the 2-by-2 upper triangular matrix R.
 The smaller singular value of R is returned in SSMIN, which is used
 as the measurement of the linear dependency of the vectors X and Y.
Parameters
[in]N
          N is INTEGER
          The length of the vectors X and Y.
[in,out]X
          X is COMPLEX*16 array, dimension (1+(N-1)*INCX)
          On entry, X contains the N-vector X.
          On exit, X is overwritten.
[in]INCX
          INCX is INTEGER
          The increment between successive elements of X. INCX > 0.
[in,out]Y
          Y is COMPLEX*16 array, dimension (1+(N-1)*INCY)
          On entry, Y contains the N-vector Y.
          On exit, Y is overwritten.
[in]INCY
          INCY is INTEGER
          The increment between successive elements of Y. INCY > 0.
[out]SSMIN
          SSMIN is DOUBLE PRECISION
          The smallest singular value of the N-by-2 matrix A = ( X Y ).
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
September 2012

Definition at line 102 of file zlapll.f.

102 *
103 * -- LAPACK auxiliary routine (version 3.4.2) --
104 * -- LAPACK is a software package provided by Univ. of Tennessee, --
105 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
106 * September 2012
107 *
108 * .. Scalar Arguments ..
109  INTEGER incx, incy, n
110  DOUBLE PRECISION ssmin
111 * ..
112 * .. Array Arguments ..
113  COMPLEX*16 x( * ), y( * )
114 * ..
115 *
116 * =====================================================================
117 *
118 * .. Parameters ..
119  DOUBLE PRECISION zero
120  parameter ( zero = 0.0d+0 )
121  COMPLEX*16 cone
122  parameter ( cone = ( 1.0d+0, 0.0d+0 ) )
123 * ..
124 * .. Local Scalars ..
125  DOUBLE PRECISION ssmax
126  COMPLEX*16 a11, a12, a22, c, tau
127 * ..
128 * .. Intrinsic Functions ..
129  INTRINSIC abs, dconjg
130 * ..
131 * .. External Functions ..
132  COMPLEX*16 zdotc
133  EXTERNAL zdotc
134 * ..
135 * .. External Subroutines ..
136  EXTERNAL dlas2, zaxpy, zlarfg
137 * ..
138 * .. Executable Statements ..
139 *
140 * Quick return if possible
141 *
142  IF( n.LE.1 ) THEN
143  ssmin = zero
144  RETURN
145  END IF
146 *
147 * Compute the QR factorization of the N-by-2 matrix ( X Y )
148 *
149  CALL zlarfg( n, x( 1 ), x( 1+incx ), incx, tau )
150  a11 = x( 1 )
151  x( 1 ) = cone
152 *
153  c = -dconjg( tau )*zdotc( n, x, incx, y, incy )
154  CALL zaxpy( n, c, x, incx, y, incy )
155 *
156  CALL zlarfg( n-1, y( 1+incy ), y( 1+2*incy ), incy, tau )
157 *
158  a12 = y( 1 )
159  a22 = y( 1+incy )
160 *
161 * Compute the SVD of 2-by-2 Upper triangular matrix.
162 *
163  CALL dlas2( abs( a11 ), abs( a12 ), abs( a22 ), ssmin, ssmax )
164 *
165  RETURN
166 *
167 * End of ZLAPLL
168 *
subroutine zlarfg(N, ALPHA, X, INCX, TAU)
ZLARFG generates an elementary reflector (Householder matrix).
Definition: zlarfg.f:108
complex *16 function zdotc(N, ZX, INCX, ZY, INCY)
ZDOTC
Definition: zdotc.f:54
subroutine zaxpy(N, ZA, ZX, INCX, ZY, INCY)
ZAXPY
Definition: zaxpy.f:53
subroutine dlas2(F, G, H, SSMIN, SSMAX)
DLAS2 computes singular values of a 2-by-2 triangular matrix.
Definition: dlas2.f:109

Here is the call graph for this function:

Here is the caller graph for this function: