lis_array_qr(3f)

πŸ“¦ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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 called lis_array_cgs and not lis_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 matrix A of size n * n. this is your girl, the matrix in question πŸ“
  • q β€” the work array Q of size n * n. a work array, so she's clocking in and doing the labour πŸ™ˆ
  • r β€” the work array R of size n * n. also on shift, also n * 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 as A and 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 element A(2,1) after similarity transformation. yes, specifically A(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