SRC/stgexc.f(3)
π NAME π
SRC/stgexc.f β thatβs the name, bestie, and itβs giving βwe are deep in LAPACK landβ π
This page lives in the Library Functions Manual πΈ
π¦ SYNOPSIS π¦
π§ Functions/Subroutines π§
subroutine stgexc (wantq, wantz, n, a, lda, b, ldb, q, ldq, z, ldz,
ifst, ilst, work, lwork, info)
STGEXC
β¨ Function/Subroutine Documentation β¨
subroutine stgexc (logical wantq, logical wantz, integer n, real, dimension(
lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb, real,
dimension( ldq, * ) q, integer ldq, real, dimension( ldz, * ) z, integer
ldz, integer ifst, integer ilst, real, dimension( * ) work, integer
lwork, integer info)
STGEXC
π Purpose π
okay so STGEXC reorders the generalized real Schur decomposition of a real matrix pair (A,B) using an orthogonal equivalence transformation:
(A, B) = Q * (A, B) * Z**T,
so that the diagonal block of (A, B) with row index IFST is moved to row ILST.
(A, B) must be in generalized real Schur canonical form (as returned by SGGES), i.e. A is block upper triangular with 1-by-1 and 2-by-2 diagonal blocks. B is upper triangular.
Optionally, the matrices Q and Z of generalized Schur vectors are updated.
Q(in) * A(in) * Z(in)**T = Q(out) * A(out) * Z(out)**T
Q(in) * B(in) * Z(in)**T = Q(out) * B(out) * Z(out)**T
π Parameters π
WANTQβ isLOGICAL..TRUE.: update the left transformation matrixQ;.FALSE.: do not updateQ.WANTZβ isLOGICAL..TRUE.: update the right transformation matrixZ;.FALSE.: do not updateZ.Nβ isINTEGER. The order of the matricesAandB.N >= 0.Aβ isREALarray, dimension(LDA,N). On entry, the matrixAin generalized real Schur canonical form. On exit, the updated matrixA, again in generalized real Schur canonical form.LDAβ isINTEGER. The leading dimension of the arrayA.LDA >= max(1,N).Bβ isREALarray, dimension(LDB,N). On entry, the matrixBin generalized real Schur canonical form(A,B). On exit, the updated matrixB, again in generalized real Schur canonical form(A,B).LDBβ isINTEGER. The leading dimension of the arrayB.LDB >= max(1,N).Qβ isREALarray, dimension(LDQ,N). On entry, ifWANTQ = .TRUE., the orthogonal matrixQ. On exit, the updated matrixQ. IfWANTQ = .FALSE.,Qis not referenced.LDQβ isINTEGER. The leading dimension of the arrayQ.LDQ >= 1. IfWANTQ = .TRUE.,LDQ >= N.Zβ isREALarray, dimension(LDZ,N). On entry, ifWANTZ = .TRUE., the orthogonal matrixZ. On exit, the updated matrixZ. IfWANTZ = .FALSE.,Zis not referenced.LDZβ isINTEGER. The leading dimension of the arrayZ.LDZ >= 1. IfWANTZ = .TRUE.,LDZ >= N.IFSTβ isINTEGER.ILSTβ isINTEGER. Specify the reordering of the diagonal blocks of(A, B). The block with row indexIFSTis moved to rowILST, by a sequence of swapping between adjacent blocks. On exit, ifIFSTpointed on entry to the second row of a 2-by-2 block, it is changed to point to the first row;ILSTalways points to the first row of the block in its final position (which may differ from its input value by +1 or -1).1 <= IFST, ILST <= N.WORKβ isREALarray, dimension(MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK.LWORKβ isINTEGER. The dimension of the arrayWORK.LWORK >= 1whenN <= 1, otherwiseLWORK >= 4*N + 16.
If LWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of the WORK array, returns this value as the first entry of the WORK array, and no error message related to LWORK is issued by XERBLA.
INFOβ isINTEGER.=0: successful exit.<0: ifINFO = -i, the i-th argument had an illegal value.=1: The transformed matrix pair(A, B)would be too far from generalized Schur form; the problem is ill-conditioned.(A, B)may have been partially reordered, andILSTpoints to the first row of the current position of the block being moved.
bestie, that INFO = 1 case is the βitβs giving ill-conditioned, proceed with emotional supportβ moment ππ
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
π 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.
Definition at line 218 of file stgexc.f.
π Author π
Generated automatically by Doxygen for LAPACK from the source code.
okay thatβs the whole page, bestie β bye! πβ¨ This one is from LAPACK, Version 3.12.0, and the footer says SRC/stgexc.f(3) π«Άπ
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms