SRC/dtgexc.f(3)
β¨ NAME
SRC/dtgexc.f β that's this page, bestie, from the Library Functions Manual. It's literally all about the DTGEXC glow-up: reordering a generalized real Schur decomposition like it's rearranging seats at the group-chat lunch table. π
πΈ SYNOPSIS
π Functions/Subroutines
subroutine dtgexc (wantq, wantz, n, a, lda, b, ldb, q, ldq, z, ldz,
ifst, ilst, work, lwork, info)
DTGEXC
π¦ Function/Subroutine Documentation
subroutine dtgexc (logical wantq, logical wantz, integer n, double
precision, dimension( lda, * ) a, integer lda, double precision,
dimension( ldb, * ) b, integer ldb, double precision, dimension( ldq, *
) q, integer ldq, double precision, dimension( ldz, * ) z, integer ldz,
integer ifst, integer ilst, double precision, dimension( * ) work,
integer lwork, integer info)
DTGEXC
π Purpose
Okay so DTGEXC 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. Main character energy for a diagonal block, honestly. π
(A, B) must be in generalized real Schur canonical form (as returned by DGGES), i.e. A is block upper triangular with 1-by-1 and 2-by-2 diagonal blocks. B is upper triangular. No cap. π¦
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βWANTQ is LOGICAL. If.TRUE.: update the left transformation matrixQ; if.FALSE.: do not updateQ. πWANTZβWANTZ is LOGICAL. If.TRUE.: update the right transformation matrixZ; if.FALSE.: do not updateZ. πNβN is INTEGER. The order of the matricesAandB.N >= 0. β¨AβA is DOUBLE PRECISION array, 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βLDA is INTEGER. The leading dimension of the arrayA.LDA >= max(1,N). πΈBβB is DOUBLE PRECISION array, 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βLDB is INTEGER. The leading dimension of the arrayB.LDB >= max(1,N). πQβQ is DOUBLE PRECISION array, dimension (LDQ,N). On entry, ifWANTQ = .TRUE., the orthogonal matrixQ. On exit, the updated matrixQ. IfWANTQ = .FALSE.,Qis not referenced. π«ΆLDQβLDQ is INTEGER. The leading dimension of the arrayQ.LDQ >= 1. IfWANTQ = .TRUE.,LDQ >= N. βZβZ is DOUBLE PRECISION array, dimension (LDZ,N). On entry, ifWANTZ = .TRUE., the orthogonal matrixZ. On exit, the updated matrixZ. IfWANTZ = .FALSE.,Zis not referenced. πLDZβLDZ is INTEGER. The leading dimension of the arrayZ.LDZ >= 1. IfWANTZ = .TRUE.,LDZ >= N. π§IFSTβIFST is INTEGER. πILSTβILST is INTEGER. 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+1or-1).1 <= IFST, ILST <= N. π«WORKβWORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)). On exit, ifINFO = 0,WORK(1)returns the optimalLWORK. π₯LWORKβLWORK is INTEGER. The dimension of the arrayWORK.LWORK >= 1whenN <= 1, otherwiseLWORK >= 4*N + 16. IfLWORK = -1, then a workspace query is assumed; the routine only calculates the optimal size of theWORKarray, returns this value as the first entry of theWORKarray, and no error message related toLWORKis issued byXERBLA. πINFOβINFO is INTEGER.=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. π
π 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 dtgexc.f
Definition at line 218 of file dtgexc.f.
π Author
This page was generated automatically by Doxygen for LAPACK from the source code. Not me writing lore, it's just the meta author. π
mwah πβ¨ β this iconic page is from LAPACK Version 3.12.0, source file SRC/dtgexc.f(3), and it's serving Library Functions Manual realness. bye bestie π«Άπ
π¦ 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