lis_array_qr(3f)
β¨ lis_array_qr(3f) β¨ β a Lis Library Functions moment π
okay bestie, sit down, hydrate, and let me tell you about this little icon from the Lis Library Functions collection π«Ά
πΈ NAME πΈ
lis_array_qr β it calculates the eigenvalues with the QR algorithm. that's it, that's the whole vibe. eigenvalues, but make it QR π
π SYNOPSIS π
subroutine lis_array_cgs(LIS_INTEGER n, LIS_SCALAR a(), LIS_SCALAR q(),
LIS_SCALAR r(), LIS_INTEGER qriter, LIS_SCALAR qrerr, LIS_INTEGER ierr);
okay yes, the subroutine in that line is literally calledlis_array_cgsand notlis_array_qr. not me pointing it out β i'm just the messenger, and i copy things character for character, periodt π
π¦ DESCRIPTION π¦
So like. You have a matrix A. You want its eigenvalues. You use the QR algorithm. That's the entire plot, no notes, main character energy fr fr π
π INPUT π
nβ the size of the matrices. lowkey the most important number here, she sets the scale of everything β¨aβ the array that stores matrixAof sizen * n. this is your girl, the matrix in question πqβ the work arrayQof sizen * n. a work array, so she's clocking in and doing the labour πrβ the work arrayRof sizen * n. also on shift, alson * n, also doing the most π
π₯ OUTPUT π₯
aβ after the similarity transformation, this array stores the block upper-triangular matrix with eigenvalues in the block diagonal elements. so she went in asAand came out changed, and the eigenvalues are sitting right there in the block diagonal elements, iconic behaviour honestly πqriterβ the number of iterations of the QR algorithm. how many laps did she run? this tells you πqrerrβ the 2-norm of the first subdiagonal elementA(2,1)after similarity transformation. yes, specificallyA(2,1), yes, the 2-norm, yes, after the transformation. we are precise in this household β
π SEE ALSO π
that's the whole page bestie, no cap π§
sign-off szn: this was lis_array_qr(3f) from the Lis Library Functions manual, dated 1 Nov 2014 (the "Man Page" era, we love a vintage moment π). go forth and get those eigenvalues πβ¨
π¦ where this page comes from
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms