LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
sggev3.f
Go to the documentation of this file.
1*> \brief <b> SGGEV3 computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices (blocked algorithm)</b>
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8*> Download SGGEV3 + dependencies
9*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/sggev3.f">
10*> [TGZ]</a>
11*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/sggev3.f">
12*> [ZIP]</a>
13*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/sggev3.f">
14*> [TXT]</a>
15*
16* Definition:
17* ===========
18*
19* SUBROUTINE SGGEV3( JOBVL, JOBVR, N, A, LDA, B, LDB, ALPHAR,
20* $ ALPHAI, BETA, VL, LDVL, VR, LDVR, WORK, LWORK,
21* $ INFO )
22*
23* .. Scalar Arguments ..
24* CHARACTER JOBVL, JOBVR
25* INTEGER INFO, LDA, LDB, LDVL, LDVR, LWORK, N
26* ..
27* .. Array Arguments ..
28* REAL A( LDA, * ), ALPHAI( * ), ALPHAR( * ),
29* $ B( LDB, * ), BETA( * ), VL( LDVL, * ),
30* $ VR( LDVR, * ), WORK( * )
31* ..
32*
33*
34*> \par Purpose:
35* =============
36*>
37*> \verbatim
38*>
39*> SGGEV3 computes for a pair of N-by-N real nonsymmetric matrices (A,B)
40*> the generalized eigenvalues, and optionally, the left and/or right
41*> generalized eigenvectors.
42*>
43*> A generalized eigenvalue for a pair of matrices (A,B) is a scalar
44*> lambda or a ratio alpha/beta = lambda, such that A - lambda*B is
45*> singular. It is usually represented as the pair (alpha,beta), as
46*> there is a reasonable interpretation for beta=0, and even for both
47*> being zero.
48*>
49*> The right eigenvector v(j) corresponding to the eigenvalue lambda(j)
50*> of (A,B) satisfies
51*>
52*> A * v(j) = lambda(j) * B * v(j).
53*>
54*> The left eigenvector u(j) corresponding to the eigenvalue lambda(j)
55*> of (A,B) satisfies
56*>
57*> u(j)**H * A = lambda(j) * u(j)**H * B .
58*>
59*> where u(j)**H is the conjugate-transpose of u(j).
60*>
61*> \endverbatim
62*
63* Arguments:
64* ==========
65*
66*> \param[in] JOBVL
67*> \verbatim
68*> JOBVL is CHARACTER*1
69*> = 'N': do not compute the left generalized eigenvectors;
70*> = 'V': compute the left generalized eigenvectors.
71*> \endverbatim
72*>
73*> \param[in] JOBVR
74*> \verbatim
75*> JOBVR is CHARACTER*1
76*> = 'N': do not compute the right generalized eigenvectors;
77*> = 'V': compute the right generalized eigenvectors.
78*> \endverbatim
79*>
80*> \param[in] N
81*> \verbatim
82*> N is INTEGER
83*> The order of the matrices A, B, VL, and VR. N >= 0.
84*> \endverbatim
85*>
86*> \param[in,out] A
87*> \verbatim
88*> A is REAL array, dimension (LDA, N)
89*> On entry, the matrix A in the pair (A,B).
90*> On exit, A has been overwritten.
91*> \endverbatim
92*>
93*> \param[in] LDA
94*> \verbatim
95*> LDA is INTEGER
96*> The leading dimension of A. LDA >= max(1,N).
97*> \endverbatim
98*>
99*> \param[in,out] B
100*> \verbatim
101*> B is REAL array, dimension (LDB, N)
102*> On entry, the matrix B in the pair (A,B).
103*> On exit, B has been overwritten.
104*> \endverbatim
105*>
106*> \param[in] LDB
107*> \verbatim
108*> LDB is INTEGER
109*> The leading dimension of B. LDB >= max(1,N).
110*> \endverbatim
111*>
112*> \param[out] ALPHAR
113*> \verbatim
114*> ALPHAR is REAL array, dimension (N)
115*> \endverbatim
116*>
117*> \param[out] ALPHAI
118*> \verbatim
119*> ALPHAI is REAL array, dimension (N)
120*> \endverbatim
121*>
122*> \param[out] BETA
123*> \verbatim
124*> BETA is REAL array, dimension (N)
125*> On exit, (ALPHAR(j) + ALPHAI(j)*i)/BETA(j), j=1,...,N, will
126*> be the generalized eigenvalues. If ALPHAI(j) is zero, then
127*> the j-th eigenvalue is real; if positive, then the j-th and
128*> (j+1)-st eigenvalues are a complex conjugate pair, with
129*> ALPHAI(j+1) negative.
130*>
131*> Note: the quotients ALPHAR(j)/BETA(j) and ALPHAI(j)/BETA(j)
132*> may easily over- or underflow, and BETA(j) may even be zero.
133*> Thus, the user should avoid naively computing the ratio
134*> alpha/beta. However, ALPHAR and ALPHAI will be always less
135*> than and usually comparable with norm(A) in magnitude, and
136*> BETA always less than and usually comparable with norm(B).
137*> \endverbatim
138*>
139*> \param[out] VL
140*> \verbatim
141*> VL is REAL array, dimension (LDVL,N)
142*> If JOBVL = 'V', the left eigenvectors u(j) are stored one
143*> after another in the columns of VL, in the same order as
144*> their eigenvalues. If the j-th eigenvalue is real, then
145*> u(j) = VL(:,j), the j-th column of VL. If the j-th and
146*> (j+1)-th eigenvalues form a complex conjugate pair, then
147*> u(j) = VL(:,j)+i*VL(:,j+1) and u(j+1) = VL(:,j)-i*VL(:,j+1).
148*> Each eigenvector is scaled so the largest component has
149*> abs(real part)+abs(imag. part)=1.
150*> Not referenced if JOBVL = 'N'.
151*> \endverbatim
152*>
153*> \param[in] LDVL
154*> \verbatim
155*> LDVL is INTEGER
156*> The leading dimension of the matrix VL. LDVL >= 1, and
157*> if JOBVL = 'V', LDVL >= N.
158*> \endverbatim
159*>
160*> \param[out] VR
161*> \verbatim
162*> VR is REAL array, dimension (LDVR,N)
163*> If JOBVR = 'V', the right eigenvectors v(j) are stored one
164*> after another in the columns of VR, in the same order as
165*> their eigenvalues. If the j-th eigenvalue is real, then
166*> v(j) = VR(:,j), the j-th column of VR. If the j-th and
167*> (j+1)-th eigenvalues form a complex conjugate pair, then
168*> v(j) = VR(:,j)+i*VR(:,j+1) and v(j+1) = VR(:,j)-i*VR(:,j+1).
169*> Each eigenvector is scaled so the largest component has
170*> abs(real part)+abs(imag. part)=1.
171*> Not referenced if JOBVR = 'N'.
172*> \endverbatim
173*>
174*> \param[in] LDVR
175*> \verbatim
176*> LDVR is INTEGER
177*> The leading dimension of the matrix VR. LDVR >= 1, and
178*> if JOBVR = 'V', LDVR >= N.
179*> \endverbatim
180*>
181*> \param[out] WORK
182*> \verbatim
183*> WORK is REAL array, dimension (MAX(1,LWORK))
184*> On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
185*> \endverbatim
186*>
187*> \param[in] LWORK
188*> \verbatim
189*> LWORK is INTEGER
190*> The dimension of the array WORK. LWORK >= MAX(1,8*N).
191*> For good performance, LWORK should generally be larger.
192*>
193*> If LWORK = -1, then a workspace query is assumed; the routine
194*> only calculates the optimal size of the WORK array, returns
195*> this value as the first entry of the WORK array, and no error
196*> message related to LWORK is issued by XERBLA.
197*> \endverbatim
198*>
199*> \param[out] INFO
200*> \verbatim
201*> INFO is INTEGER
202*> = 0: successful exit
203*> < 0: if INFO = -i, the i-th argument had an illegal value.
204*> = 1,...,N:
205*> The QZ iteration failed. No eigenvectors have been
206*> calculated, but ALPHAR(j), ALPHAI(j), and BETA(j)
207*> should be correct for j=INFO+1,...,N.
208*> > N: =N+1: other than QZ iteration failed in SLAQZ0.
209*> =N+2: error return from STGEVC.
210*> \endverbatim
211*
212* Authors:
213* ========
214*
215*> \author Univ. of Tennessee
216*> \author Univ. of California Berkeley
217*> \author Univ. of Colorado Denver
218*> \author NAG Ltd.
219*
220*> \ingroup ggev3
221*
222* =====================================================================
223 SUBROUTINE sggev3( JOBVL, JOBVR, N, A, LDA, B, LDB, ALPHAR,
224 $ ALPHAI, BETA, VL, LDVL, VR, LDVR, WORK, LWORK,
225 $ INFO )
226*
227* -- LAPACK driver routine --
228* -- LAPACK is a software package provided by Univ. of Tennessee, --
229* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
230*
231* .. Scalar Arguments ..
232 CHARACTER JOBVL, JOBVR
233 INTEGER INFO, LDA, LDB, LDVL, LDVR, LWORK, N
234* ..
235* .. Array Arguments ..
236 REAL A( LDA, * ), ALPHAI( * ), ALPHAR( * ),
237 $ B( LDB, * ), BETA( * ), VL( LDVL, * ),
238 $ vr( ldvr, * ), work( * )
239* ..
240*
241* =====================================================================
242*
243* .. Parameters ..
244 REAL ZERO, ONE
245 PARAMETER ( ZERO = 0.0e+0, one = 1.0e+0 )
246* ..
247* .. Local Scalars ..
248 LOGICAL ILASCL, ILBSCL, ILV, ILVL, ILVR, LQUERY
249 CHARACTER CHTEMP
250 INTEGER ICOLS, IERR, IHI, IJOBVL, IJOBVR, ILEFT, ILO,
251 $ in, iright, irows, itau, iwrk, jc, jr, lwkopt,
252 $ lwkmin
253 REAL ANRM, ANRMTO, BIGNUM, BNRM, BNRMTO, EPS,
254 $ SMLNUM, TEMP
255* ..
256* .. Local Arrays ..
257 LOGICAL LDUMMA( 1 )
258* ..
259* .. External Subroutines ..
260 EXTERNAL sgeqrf, sggbak, sggbal,
261 $ sgghd3, slaqz0, slacpy,
262 $ slascl, slaset, sorgqr,
263 $ sormqr, stgevc
264* ..
265* .. External Functions ..
266 LOGICAL LSAME
267 REAL SLAMCH, SLANGE, SROUNDUP_LWORK
268 EXTERNAL lsame, slamch, slange,
269 $ sroundup_lwork
270* ..
271* .. Intrinsic Functions ..
272 INTRINSIC abs, max, sqrt
273* ..
274* .. Executable Statements ..
275*
276* Decode the input arguments
277*
278 IF( lsame( jobvl, 'N' ) ) THEN
279 ijobvl = 1
280 ilvl = .false.
281 ELSE IF( lsame( jobvl, 'V' ) ) THEN
282 ijobvl = 2
283 ilvl = .true.
284 ELSE
285 ijobvl = -1
286 ilvl = .false.
287 END IF
288*
289 IF( lsame( jobvr, 'N' ) ) THEN
290 ijobvr = 1
291 ilvr = .false.
292 ELSE IF( lsame( jobvr, 'V' ) ) THEN
293 ijobvr = 2
294 ilvr = .true.
295 ELSE
296 ijobvr = -1
297 ilvr = .false.
298 END IF
299 ilv = ilvl .OR. ilvr
300*
301* Test the input arguments
302*
303 info = 0
304 lquery = ( lwork.EQ.-1 )
305 lwkmin = max( 1, 8*n )
306 IF( ijobvl.LE.0 ) THEN
307 info = -1
308 ELSE IF( ijobvr.LE.0 ) THEN
309 info = -2
310 ELSE IF( n.LT.0 ) THEN
311 info = -3
312 ELSE IF( lda.LT.max( 1, n ) ) THEN
313 info = -5
314 ELSE IF( ldb.LT.max( 1, n ) ) THEN
315 info = -7
316 ELSE IF( ldvl.LT.1 .OR. ( ilvl .AND. ldvl.LT.n ) ) THEN
317 info = -12
318 ELSE IF( ldvr.LT.1 .OR. ( ilvr .AND. ldvr.LT.n ) ) THEN
319 info = -14
320 ELSE IF( lwork.LT.lwkmin .AND. .NOT.lquery ) THEN
321 info = -16
322 END IF
323*
324* Compute workspace
325*
326 IF( info.EQ.0 ) THEN
327 CALL sgeqrf( n, n, b, ldb, work, work, -1, ierr )
328 lwkopt = max( lwkmin, 3*n+int( work( 1 ) ) )
329 CALL sormqr( 'L', 'T', n, n, n, b, ldb, work, a, lda, work,
330 $ -1, ierr )
331 lwkopt = max( lwkopt, 3*n+int( work( 1 ) ) )
332 CALL sgghd3( jobvl, jobvr, n, 1, n, a, lda,
333 $ b, ldb, vl, ldvl,
334 $ vr, ldvr, work, -1, ierr )
335 lwkopt = max( lwkopt, 3*n+int( work( 1 ) ) )
336 IF( ilvl ) THEN
337 CALL sorgqr( n, n, n, vl, ldvl, work, work, -1, ierr )
338 lwkopt = max( lwkopt, 3*n+int( work( 1 ) ) )
339 CALL slaqz0( 'S', jobvl, jobvr, n, 1, n, a, lda, b, ldb,
340 $ alphar, alphai, beta, vl, ldvl, vr, ldvr,
341 $ work, -1, 0, ierr )
342 lwkopt = max( lwkopt, 2*n+int( work( 1 ) ) )
343 ELSE
344 CALL slaqz0( 'E', jobvl, jobvr, n, 1, n, a, lda, b, ldb,
345 $ alphar, alphai, beta, vl, ldvl, vr, ldvr,
346 $ work, -1, 0, ierr )
347 lwkopt = max( lwkopt, 2*n+int( work( 1 ) ) )
348 END IF
349 IF( n.EQ.0 ) THEN
350 work( 1 ) = 1
351 ELSE
352 work( 1 ) = sroundup_lwork( lwkopt )
353 END IF
354 END IF
355*
356 IF( info.NE.0 ) THEN
357 CALL xerbla( 'SGGEV3 ', -info )
358 RETURN
359 ELSE IF( lquery ) THEN
360 RETURN
361 END IF
362*
363* Quick return if possible
364*
365 IF( n.EQ.0 )
366 $ RETURN
367*
368* Get machine constants
369*
370 eps = slamch( 'P' )
371 smlnum = slamch( 'S' )
372 bignum = one / smlnum
373 smlnum = sqrt( smlnum ) / eps
374 bignum = one / smlnum
375*
376* Scale A if max element outside range [SMLNUM,BIGNUM]
377*
378 anrm = slange( 'M', n, n, a, lda, work )
379 ilascl = .false.
380 IF( anrm.GT.zero .AND. anrm.LT.smlnum ) THEN
381 anrmto = smlnum
382 ilascl = .true.
383 ELSE IF( anrm.GT.bignum ) THEN
384 anrmto = bignum
385 ilascl = .true.
386 END IF
387 IF( ilascl )
388 $ CALL slascl( 'G', 0, 0, anrm, anrmto, n, n, a, lda, ierr )
389*
390* Scale B if max element outside range [SMLNUM,BIGNUM]
391*
392 bnrm = slange( 'M', n, n, b, ldb, work )
393 ilbscl = .false.
394 IF( bnrm.GT.zero .AND. bnrm.LT.smlnum ) THEN
395 bnrmto = smlnum
396 ilbscl = .true.
397 ELSE IF( bnrm.GT.bignum ) THEN
398 bnrmto = bignum
399 ilbscl = .true.
400 END IF
401 IF( ilbscl )
402 $ CALL slascl( 'G', 0, 0, bnrm, bnrmto, n, n, b, ldb, ierr )
403*
404* Permute the matrices A, B to isolate eigenvalues if possible
405*
406 ileft = 1
407 iright = n + 1
408 iwrk = iright + n
409 CALL sggbal( 'P', n, a, lda, b, ldb, ilo, ihi, work( ileft ),
410 $ work( iright ), work( iwrk ), ierr )
411*
412* Reduce B to triangular form (QR decomposition of B)
413*
414 irows = ihi + 1 - ilo
415 IF( ilv ) THEN
416 icols = n + 1 - ilo
417 ELSE
418 icols = irows
419 END IF
420 itau = iwrk
421 iwrk = itau + irows
422 CALL sgeqrf( irows, icols, b( ilo, ilo ), ldb, work( itau ),
423 $ work( iwrk ), lwork+1-iwrk, ierr )
424*
425* Apply the orthogonal transformation to matrix A
426*
427 CALL sormqr( 'L', 'T', irows, icols, irows, b( ilo, ilo ), ldb,
428 $ work( itau ), a( ilo, ilo ), lda, work( iwrk ),
429 $ lwork+1-iwrk, ierr )
430*
431* Initialize VL
432*
433 IF( ilvl ) THEN
434 CALL slaset( 'Full', n, n, zero, one, vl, ldvl )
435 IF( irows.GT.1 ) THEN
436 CALL slacpy( 'L', irows-1, irows-1,
437 $ b( ilo+1, ilo ), ldb,
438 $ vl( ilo+1, ilo ), ldvl )
439 END IF
440 CALL sorgqr( irows, irows, irows, vl( ilo, ilo ), ldvl,
441 $ work( itau ), work( iwrk ), lwork+1-iwrk, ierr )
442 END IF
443*
444* Initialize VR
445*
446 IF( ilvr )
447 $ CALL slaset( 'Full', n, n, zero, one, vr, ldvr )
448*
449* Reduce to generalized Hessenberg form
450*
451 IF( ilv ) THEN
452*
453* Eigenvectors requested -- work on whole matrix.
454*
455 CALL sgghd3( jobvl, jobvr, n, ilo, ihi,
456 $ a, lda,
457 $ b, ldb, vl,
458 $ ldvl, vr, ldvr,
459 $ work( iwrk ), lwork+1-iwrk, ierr )
460 ELSE
461 CALL sgghd3( 'N', 'N', irows, 1, irows,
462 $ a( ilo, ilo ), lda,
463 $ b( ilo, ilo ), ldb, vl,
464 $ ldvl, vr, ldvr,
465 $ work( iwrk ), lwork+1-iwrk, ierr )
466 END IF
467*
468* Perform QZ algorithm (Compute eigenvalues, and optionally, the
469* Schur forms and Schur vectors)
470*
471 iwrk = itau
472 IF( ilv ) THEN
473 chtemp = 'S'
474 ELSE
475 chtemp = 'E'
476 END IF
477 CALL slaqz0( chtemp, jobvl, jobvr, n, ilo, ihi, a, lda, b, ldb,
478 $ alphar, alphai, beta, vl, ldvl, vr, ldvr,
479 $ work( iwrk ), lwork+1-iwrk, 0, ierr )
480 IF( ierr.NE.0 ) THEN
481 IF( ierr.GT.0 .AND. ierr.LE.n ) THEN
482 info = ierr
483 ELSE IF( ierr.GT.n .AND. ierr.LE.2*n ) THEN
484 info = ierr - n
485 ELSE
486 info = n + 1
487 END IF
488 GO TO 110
489 END IF
490*
491* Compute Eigenvectors
492*
493 IF( ilv ) THEN
494 IF( ilvl ) THEN
495 IF( ilvr ) THEN
496 chtemp = 'B'
497 ELSE
498 chtemp = 'L'
499 END IF
500 ELSE
501 chtemp = 'R'
502 END IF
503 CALL stgevc( chtemp, 'B', ldumma, n, a, lda, b, ldb, vl,
504 $ ldvl,
505 $ vr, ldvr, n, in, work( iwrk ), ierr )
506 IF( ierr.NE.0 ) THEN
507 info = n + 2
508 GO TO 110
509 END IF
510*
511* Undo balancing on VL and VR and normalization
512*
513 IF( ilvl ) THEN
514 CALL sggbak( 'P', 'L', n, ilo, ihi, work( ileft ),
515 $ work( iright ), n, vl, ldvl, ierr )
516 DO 50 jc = 1, n
517 IF( alphai( jc ).LT.zero )
518 $ GO TO 50
519 temp = zero
520 IF( alphai( jc ).EQ.zero ) THEN
521 DO 10 jr = 1, n
522 temp = max( temp, abs( vl( jr, jc ) ) )
523 10 CONTINUE
524 ELSE
525 DO 20 jr = 1, n
526 temp = max( temp, abs( vl( jr, jc ) )+
527 $ abs( vl( jr, jc+1 ) ) )
528 20 CONTINUE
529 END IF
530 IF( temp.LT.smlnum )
531 $ GO TO 50
532 temp = one / temp
533 IF( alphai( jc ).EQ.zero ) THEN
534 DO 30 jr = 1, n
535 vl( jr, jc ) = vl( jr, jc )*temp
536 30 CONTINUE
537 ELSE
538 DO 40 jr = 1, n
539 vl( jr, jc ) = vl( jr, jc )*temp
540 vl( jr, jc+1 ) = vl( jr, jc+1 )*temp
541 40 CONTINUE
542 END IF
543 50 CONTINUE
544 END IF
545 IF( ilvr ) THEN
546 CALL sggbak( 'P', 'R', n, ilo, ihi, work( ileft ),
547 $ work( iright ), n, vr, ldvr, ierr )
548 DO 100 jc = 1, n
549 IF( alphai( jc ).LT.zero )
550 $ GO TO 100
551 temp = zero
552 IF( alphai( jc ).EQ.zero ) THEN
553 DO 60 jr = 1, n
554 temp = max( temp, abs( vr( jr, jc ) ) )
555 60 CONTINUE
556 ELSE
557 DO 70 jr = 1, n
558 temp = max( temp, abs( vr( jr, jc ) )+
559 $ abs( vr( jr, jc+1 ) ) )
560 70 CONTINUE
561 END IF
562 IF( temp.LT.smlnum )
563 $ GO TO 100
564 temp = one / temp
565 IF( alphai( jc ).EQ.zero ) THEN
566 DO 80 jr = 1, n
567 vr( jr, jc ) = vr( jr, jc )*temp
568 80 CONTINUE
569 ELSE
570 DO 90 jr = 1, n
571 vr( jr, jc ) = vr( jr, jc )*temp
572 vr( jr, jc+1 ) = vr( jr, jc+1 )*temp
573 90 CONTINUE
574 END IF
575 100 CONTINUE
576 END IF
577*
578* End of eigenvector calculation
579*
580 END IF
581*
582* Undo scaling if necessary
583*
584 110 CONTINUE
585*
586 IF( ilascl ) THEN
587 CALL slascl( 'G', 0, 0, anrmto, anrm, n, 1, alphar, n,
588 $ ierr )
589 CALL slascl( 'G', 0, 0, anrmto, anrm, n, 1, alphai, n,
590 $ ierr )
591 END IF
592*
593 IF( ilbscl ) THEN
594 CALL slascl( 'G', 0, 0, bnrmto, bnrm, n, 1, beta, n, ierr )
595 END IF
596*
597 work( 1 ) = sroundup_lwork( lwkopt )
598 RETURN
599*
600* End of SGGEV3
601*
602 END
subroutine xerbla(srname, info)
Definition cblat2.f:3285
subroutine sgeqrf(m, n, a, lda, tau, work, lwork, info)
SGEQRF
Definition sgeqrf.f:144
subroutine sggbak(job, side, n, ilo, ihi, lscale, rscale, m, v, ldv, info)
SGGBAK
Definition sggbak.f:146
subroutine sggbal(job, n, a, lda, b, ldb, ilo, ihi, lscale, rscale, work, info)
SGGBAL
Definition sggbal.f:175
subroutine sggev3(jobvl, jobvr, n, a, lda, b, ldb, alphar, alphai, beta, vl, ldvl, vr, ldvr, work, lwork, info)
SGGEV3 computes the eigenvalues and, optionally, the left and/or right eigenvectors for GE matrices (...
Definition sggev3.f:226
subroutine sgghd3(compq, compz, n, ilo, ihi, a, lda, b, ldb, q, ldq, z, ldz, work, lwork, info)
SGGHD3
Definition sgghd3.f:229
subroutine slacpy(uplo, m, n, a, lda, b, ldb)
SLACPY copies all or part of one two-dimensional array to another.
Definition slacpy.f:101
recursive subroutine slaqz0(wants, wantq, wantz, n, ilo, ihi, a, lda, b, ldb, alphar, alphai, beta, q, ldq, z, ldz, work, lwork, rec, info)
SLAQZ0
Definition slaqz0.f:303
subroutine slascl(type, kl, ku, cfrom, cto, m, n, a, lda, info)
SLASCL multiplies a general rectangular matrix by a real scalar defined as cto/cfrom.
Definition slascl.f:142
subroutine slaset(uplo, m, n, alpha, beta, a, lda)
SLASET initializes the off-diagonal elements and the diagonal elements of a matrix to given values.
Definition slaset.f:108
subroutine stgevc(side, howmny, select, n, s, lds, p, ldp, vl, ldvl, vr, ldvr, mm, m, work, info)
STGEVC
Definition stgevc.f:293
subroutine sorgqr(m, n, k, a, lda, tau, work, lwork, info)
SORGQR
Definition sorgqr.f:126
subroutine sormqr(side, trans, m, n, k, a, lda, tau, c, ldc, work, lwork, info)
SORMQR
Definition sormqr.f:166