SRC/dlagv2.f(3)
NAME π
okay bestie, this is SRC/dlagv2.f(3), and the manual it lives under is Library Functions Manual β yes, the whole page is literally just SRC/dlagv2.f. Itβs a LAPACK routine page for dlagv2, and itβs giving βsmall matrix pencil, huge main character energy.β π
SYNOPSIS β¨
Functions/Subroutines π
subroutine dlagv2 (a, lda, b, ldb, alphar, alphai, beta, csl, snl, csr,
snr)
dlagv2β DLAGV2 computes the Generalized Schur factorization of a real 2-by-2 matrix pencil(A,B)whereBis upper triangular. π«Ά
Function/Subroutine Documentation π
Hereβs the full signature, copied exactly because we do not play with code, no cap:
subroutine dlagv2 (double precision, dimension( lda, * ) a, integer lda,
double precision, dimension( ldb, * ) b, integer ldb, double precision,
dimension( 2 ) alphar, double precision, dimension( 2 ) alphai, double
precision, dimension( 2 ) beta, double precision csl, double precision
snl, double precision csr, double precision snr)
DLAGV2 computes the Generalized Schur factorization of a real 2-by-2 matrix pencil (A,B) where B is upper triangular. π₯
Purpose π
okay so this routine computes orthogonal (rotation) matrices given by CSL, SNL and CSR, SNR such that:
1) if the pencil (A,B) has two real eigenvalues (include 0/0 or 1/0
types), then
[ a11 a12 ] := [ CSL SNL ] [ a11 a12 ] [ CSR -SNR ]
[ 0 a22 ] [ -SNL CSL ] [ a21 a22 ] [ SNR CSR ]
[ b11 b12 ] := [ CSL SNL ] [ b11 b12 ] [ CSR -SNR ]
[ 0 b22 ] [ -SNL CSL ] [ 0 b22 ] [ SNR CSR ],
2) if the pencil (A,B) has a pair of complex conjugate eigenvalues,
then
[ a11 a12 ] := [ CSL SNL ] [ a11 a12 ] [ CSR -SNR ]
[ a21 a22 ] [ -SNL CSL ] [ a21 a22 ] [ SNR CSR ]
[ b11 0 ] := [ CSL SNL ] [ b11 b12 ] [ CSR -SNR ]
[ 0 b22 ] [ -SNL CSL ] [ 0 b22 ] [ SNR CSR ]
where b11 >= b22 > 0.
the way that this is all in one tiny 2-by-2 routine is genuinely iconic. π
Parameters π¦
AβDOUBLE PRECISIONarray, dimension(LDA, 2). On entry, the2 x 2matrixA. On exit,Ais overwritten by the βA-partβ of the generalized Schur form. β¨LDAβINTEGER. The leading dimension of the arrayA.LDA >= 2.BβDOUBLE PRECISIONarray, dimension(LDB, 2). On entry, the upper triangular2 x 2matrixB. On exit,Bis overwritten by the βB-partβ of the generalized Schur form. πLDBβINTEGER. The leading dimension of the arrayB.LDB >= 2.ALPHARβDOUBLE PRECISIONarray, dimension(2). πALPHAIβDOUBLE PRECISIONarray, dimension(2). πBETAβDOUBLE PRECISIONarray, dimension(2).(ALPHAR(k)+i*ALPHAI(k))/BETA(k)are the eigenvalues of the pencil(A,B),k=1,2,i = sqrt(-1). Note thatBETA(k)may be zero. πCSLβDOUBLE PRECISION. The cosine of the left rotation matrix.SNLβDOUBLE PRECISION. The sine of the left rotation matrix.CSRβDOUBLE PRECISION. The cosine of the right rotation matrix.SNRβDOUBLE PRECISION. The sine of the right rotation matrix.
Author π«Ά
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Contributors: πΈ
- Mark Fahey, Department of Mathematics, Univ. of Kentucky, USA
Definition at line 155 of file dlagv2.f. π
Author β¨ (auto-generated)
Generated automatically by Doxygen for LAPACK from the source code. π€
okay thatβs the whole page, bestie β the footer/source/version/date line is LAPACK, Version 3.12.0, SRC/dlagv2.f(3), and itβs giving official manual-page realness. periodt. π
π¦ 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