ZTGEX2(3)
π NAME π
okay so this is the ztgex2.f(3) page from the Library Functions Manual, bestie π
. The file itβs repping is:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/ztgex2.f
β¨ SYNOPSIS β¨
πΈ Functions/Subroutines πΈ
Hereβs the subroutine vibe check:
subroutine ZTGEX2 (wantq, wantz, n, a, lda, b, ldb, q, ldq, z, ldz, j1,
info)
ZTGEX2 swaps adjacent diagonal blocks in an upper (quasi) triangular matrix pair by an unitary equivalence transformation. periodt π«
π Function/Subroutine Documentation π
The full signature situation is literally this:
subroutine ZTGEX2 (logical wantq, logical wantz, integer n, complex*16,
dimension( lda, * ) a, integer lda, complex*16, dimension( ldb, * ) b,
integer ldb, complex*16, dimension( ldq, * ) q, integer ldq, complex*16,
dimension( ldz, * ) z, integer ldz, integer j1, integer info)
ZTGEX2 swaps adjacent diagonal blocks in an upper (quasi) triangular matrix pair by an unitary equivalence transformation. iconic β¨
πΈ Purpose: πΈ
okay so the purpose is literally this, no cap:
ZTGEX2swaps adjacent diagonal1by1blocks(A11,B11)and(A22,B22)in an upper triangular matrix pair(A, B)by an unitary equivalence transformation.(A, B)must be in generalized Schur canonical form, that is,AandBare both upper triangular.- Optionally, the matrices
QandZof generalized Schur vectors are updated.
And the equations it keeps are:
Q(in) * A(in) * Z(in)**H = Q(out) * A(out) * Z(out)**H
Q(in) * B(in) * Z(in)**H = Q(out) * B(out) * Z(out)**H
π Parameters π
WANTQβWANTQisLOGICAL..TRUE.: update the left transformation matrixQ;.FALSE.: do not updateQ.WANTZβWANTZisLOGICAL..TRUE.: update the right transformation matrixZ;.FALSE.: do not updateZ.NβNisINTEGER. The order of the matricesAandB.N >= 0.AβAisCOMPLEX*16array, dimensions(LDA,N). On entry, the matrixAin the pair(A, B). On exit, the updated matrixA.LDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).BβBisCOMPLEX*16array, dimensions(LDB,N). On entry, the matrixBin the pair(A, B). On exit, the updated matrixB.LDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).QβQisCOMPLEX*16array, dimension(LDQ,N). IfWANTQ = .TRUE,on entry, the unitary matrixQ. On exit, the updated matrixQ. Not referenced ifWANTQ = .FALSE..LDQβLDQisINTEGER. The leading dimension of the arrayQ.LDQ >= 1; IfWANTQ = .TRUE.,LDQ >= N.ZβZisCOMPLEX*16array, dimension(LDZ,N). IfWANTZ = .TRUE,on entry, the unitary matrixZ. On exit, the updated matrixZ. Not referenced ifWANTZ = .FALSE..LDZβLDZisINTEGER. The leading dimension of the arrayZ.LDZ >= 1; IfWANTZ = .TRUE.,LDZ >= N.J1βJ1isINTEGER. The index to the first block(A11, B11).INFOβINFOisINTEGER.=0: Successful exit.=1: The transformed matrix pair(A, B)would be too far from generalized Schur form; the problem is ill-conditioned.
π«Ά Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π Further Details: π
In the current code both weak and strong stability tests are performed. The user can omit the strong stability test by changing the internal logical parameter WANDS to .FALSE.. See ref. [2] for details. iykyk π
π§ Contributors: π§
Bo Kagstrom and Peter Poromaa, Department of Computing Science, Umea University, S-901 87 Umea, Sweden.
π References: π
- [1] B. Kagstrom; A Direct Method for Reordering Eigenvalues in the Generalized Real Schur Form of a Regular Matrix Pair (A, B), in M.S. Moonen et al (eds), Linear Algebra for Large Scale and Real-Time Applications, Kluwer Academic Publ. 1993, pp 195-218.
- [2] B. Kagstrom and P. Poromaa; Computing Eigenspaces with Specified Eigenvalues of a Regular Matrix Pair (A, B) and Condition Estimation: Theory, Algorithms and Software, Report UMINF-94.04, Department of Computing Science, Umea University, S-901 87 Umea, Sweden, 1994. Also as LAPACK Working Note 87. To appear in Numerical Algorithms, 1996.
Definition at line 188 of file ztgex2.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
Cute sign-off: this pageβs footer says LAPACK Version 3.12.0 and points back to /home/abui...RC/ztgex2.f(3). No date is listed up in here, so weβre not inventing one π
β¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: lapack-man 3.12.0-160000.2.2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms