lis_array_qr(3)
β¨ lis_array_qr(3) β it's giving "eigenvalues, but make it QR" β¨
okay bestie, so this is a page from the Lis Library Functions manual, section 3, and it's literally all about lis_array_qr. pull up a chair, grab a boba π§, and let's get into it.
π NAME π
lis_array_qr β calculate the eigenvalues with the QR algorithm
π¦ SYNOPSIS π¦
#include "lis.h"
LIS_INT lis_array_qr(LIS_INT n, LIS_SCALAR a[], LIS_SCALAR q[],
LIS_SCALAR r[], LIS_INT *qriter, LIS_SCALAR *qrerr);
πΈ DESCRIPTION πΈ
so basically?? you hand it matrix A and it goes and calculates the eigenvalues of matrix A with the QR algorithm. that's the whole vibe. it ate, no crumbs. π
π INPUT π
the stuff you gotta bring to the function:
nβ the size of the matrices, bestie. the actual dimensions.aβ the array that stores matrix A of size n * n. this is the main character right here πqβ the work array Q of size n * n. it's a work array, it's doing the labor, respect it πrβ the work array R of size n * n. also clocking in for work-array duty.
β OUTPUT β
what you get back after the glow-up:
aβ the array that stores the block upper-triangular matrix with eigenvalues in the block diagonal elements after similarity transformation. like, it literally got transformed, and the eigenvalues are chilling in the block diagonal elements. iconic behavior. β¨qriterβ the number of iterations of the QR algorithm. counting every single one, no skips π«Άqrerrβ the 2-norm of the first subdiagonal elementA(2,1)after similarity transformation. yes, that specific one. it's giving very precise. π
π EXIT STATUS π
the following exit values are returned, and you WILL be checking them:
0β the process is normally terminated. slay, everything went perfect, go off queen πunspecifiedβ an error occurred. not slay. something went wrong, and the docs are just like "unspecified" about it π
π SEE ALSO π
fr fr, that URL is the whole LIS mothership β go peek if you wanna know more. πΈ
okay that's the whole page, bestie!! this was the lis_array_qr(3) man page from 1 Nov 2014, and it lives under the big lis umbrella of Lis Library Functions. mwah, love you, go compute some 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