/home/abui...RC/slag2.f(3)
okay bestie, welcome to /home/abui...RC/slag2.f(3) β a page straight outta the Library Functions Manual, and itβs giving βLAPACK math girlie explains eigenvalues with scalingβ energy. π
β¨
πΈ NAME πΈ
The name here is the whole file path, no cap:
/home/abuild/rpmbuild/BUILD/lapack-static-3.12.0-build/lapack-3.12.0/SRC/slag2.f
β¨ SYNOPSIS β¨
π Functions/Subroutines π
subroutine SLAG2 (a, lda, b, ldb, safmin, scale1, scale2, wr1, wr2, wi)
SLAG2 computes the eigenvalues of a 2-by-2 generalized eigenvalue problem, with scaling as necessary to avoid over-/underflow. literally the whole point, and she ate. π₯
π Function/Subroutine Documentation π
subroutine SLAG2
subroutine SLAG2 (real, dimension( lda, * ) a, integer lda, real, dimension( ldb, * ) b, integer ldb, real safmin, real scale1, real scale2, real wr1, real wr2, real wi)
SLAG2 computes the eigenvalues of a 2-by-2 generalized eigenvalue problem, with scaling as necessary to avoid over-/underflow. bestie, this is the main character subroutine. π
π§ Purpose π§
SLAG2 computes the eigenvalues of a 2 x 2 generalized eigenvalue problem
A - w B
with scaling as necessary to avoid over-/underflow. π«Ά
The scaling factor results in a modified eigenvalue equation:
s A - w B
where s is a non-negative scaling factor chosen so that w, w B, and s A do not overflow and, if possible, do not underflow, either. thatβs the vibe check: no overflow, no underflow, just math. πβ¨
π Parameters π
AβAisREAL array, dimension (LDA, 2). On entry, the 2 x 2 matrixA. It is assumed that its 1-norm is less than1/SAFMIN. Entries less thansqrt(SAFMIN)*norm(A)are subject to being treated as zero. okay so those tiny entries might get ignored, thatβs just how it is. πLDAβLDAisINTEGER. The leading dimension of the arrayA.LDA >= 2. periodt.BβBisREAL array, dimension (LDB, 2). On entry, the 2 x 2 upper triangular matrixB. It is assumed that the one-norm ofBis less than1/SAFMIN. The diagonals should be at leastsqrt(SAFMIN)times the largest element ofB(in absolute value); if a diagonal is smaller than that, then+/- sqrt(SAFMIN)will be used instead of that diagonal. she will substitute on you, respectfully. πLDBβLDBisINTEGER. The leading dimension of the arrayB.LDB >= 2. no notes.SAFMINβSAFMINisREAL. The smallest positive number s.t.1/SAFMINdoes not overflow. (This should always beSLAMCH('S')-- it is an argument in order to avoid having to callSLAMCHfrequently.) efficiency icon behavior. β‘SCALE1βSCALE1isREAL. A scaling factor used to avoid over-/underflow in the eigenvalue equation which defines the first eigenvalue. If the eigenvalues are complex, then the eigenvalues are( WR1 +/- WI i ) / SCALE1(which may lie outside the exponent range of the machine),SCALE1=SCALE2, andSCALE1will always be positive. If the eigenvalues are real, then the first (real) eigenvalue isWR1 / SCALE1, but this may overflow or underflow, and in fact,SCALE1may be zero or less than the underflow threshold if the exact eigenvalue is sufficiently large. yes she can get spicy with the exponent range. πSCALE2βSCALE2isREAL. A scaling factor used to avoid over-/underflow in the eigenvalue equation which defines the second eigenvalue. If the eigenvalues are complex, thenSCALE2=SCALE1. If the eigenvalues are real, then the second (real) eigenvalue isWR2 / SCALE2, but this may overflow or underflow, and in fact,SCALE2may be zero or less than the underflow threshold if the exact eigenvalue is sufficiently large. same energy, second eigenvalue edition. πWR1βWR1isREAL. If the eigenvalue is real, thenWR1isSCALE1times the eigenvalue closest to the(2,2)element ofA B**(-1). If the eigenvalue is complex, thenWR1=WR2isSCALE1times the real part of the eigenvalues. iconic little real-part moment. πΈWR2βWR2isREAL. If the eigenvalue is real, thenWR2isSCALE2times the other eigenvalue. If the eigenvalue is complex, thenWR1=WR2isSCALE1times the real part of the eigenvalues. sheβs matchingWR1βs freak. πWIβWIisREAL. If the eigenvalue is real, thenWIis zero. If the eigenvalue is complex, thenWIisSCALE1times the imaginary part of the eigenvalues.WIwill always be non-negative. always non-negative, we love a consistent queen. π
π Author π
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 154 of file slag2.f.
π«Ά Author π«Ά
Generated automatically by Doxygen for LAPACK from the source code. automation ate, honestly. π¦
okay thatβs the whole page, bestie! cute little footer sign-off: LAPACK Version 3.12.0 and the page path /home/abui...RC/slag2.f(3) β mwah, math icon behavior πβ¨
π¦ 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