lis_array_cgs(3f)
π lis_array_cgs(3f) β the Lis Library Functions era π
okay bestie, so this is a page from the Lis Library Functions manual, and it's about one little function that's honestly giving math girlboss energy. her name is lis_array_cgs, and she's here to do QR factorization with the classical Gram-Schmidt process. no cap. π
β¨ NAME β¨
lis_array_cgs β calculate the QR factorization with the classical Gram-Schmidt process π
πΈ SYNOPSIS πΈ
subroutine lis_array_cgs(LIS_INTEGER n, LIS_SCALAR a(), LIS_SCALAR q(),
LIS_SCALAR r(), LIS_INTEGER ierr);
like. look at her. four outputs and a size. iconic behavior honestly π¦
π DESCRIPTION π
so what she does is: she calculates the QR factorization
QR=A
using the classical Gram-Schmidt process. that's it, that's the whole vibe. she takes your A and hands you back a Q and an R and she does it the classic way, not the fancy modified way, just so we're clear π₯
π INPUT π
nβ the size of the matrices, bestie. that's the number.aβ the array that stores matrixAof sizen * nπ
β¨ OUTPUT β¨
qβ the array that stores the orthogonal matrixQof sizen * n. she's orthogonal, she's serving π«Άrβ the array that stores the upper-triangular matrixRof sizen * n. upper triangular. very demure, very mindful, all those zeros below the diagonal β¨
also there's ierr in the synopsis, which is where she drops the error status, so keep an eye on her π
π¦ SEE ALSO π¦
π the sign-off π
this page is from the Lis Library Functions manual, dated 3 Dec 2014, and she lives under the name lis_array_cgs(3f). periodt. go factor something π
β¨
π¦ 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