lis_array_mgs(3f)
π lis_array_mgs β bestie edition π
okay so you're here for lis_array_mgs, one of the Lis Library Functions (that's the (3f) manual, section 3f, we love her). She does one thing and she does it flawlessly: QR factorization, but make it modified Gram-Schmidt. no cap.
β¨ SYNOPSIS β¨
subroutine lis_array_mgs(LIS_INTEGER n, LIS_SCALAR a(), LIS_SCALAR q(),
LIS_SCALAR r(), LIS_INTEGER ierr);
look at her. five arguments, zero drama. π
π¦ DESCRIPTION π¦
So here's the tea: this routine calculates the QR factorization
QR=A
using the modified Gram-Schmidt process. that's it. that's the whole vibe. she takes your matrix A, and she hands you back a Q and an R that multiply back into A. iconic behavior honestly. π
πΈ INPUT πΈ
nβ the size of the matrices. she needs to know how big we're going, bestie, and she needs it inLIS_INTEGERform.aβ the array that stores matrix A, sizedn * n. this is your input, your main character, the one you're decomposing.
π OUTPUT π
qβ the array that stores matrix Q, sizedn * n. she writes it, you don't have to.rβ the array that stores matrix R, sizedn * n. same deal. Q and R, both freshly served. β¨
heads up:qandrare outputs, so don't come crying to me if whatever was in those arrays before is gone forever. that's just how output arrays work, periodt. π
π SEE ALSO π
lis(3)- http://www.ssisc.org/lis/ β the whole Lis universe lives here, go explore π«Ά
that's the whole page bestie, go factor something. πβ¨
mwah β this one's from the Lis Library Functions, documented as a man page, dated 3 Dec 2014. it's giving vintage but she still slays. π¦πΈ
π¦ 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