lis_array_cgs(3)
β¨ lis_array_cgs β¨
okay so bestie, we're deep in the Lis Library Functions section of the manual, and today's main character is lis_array_cgs(3) π
πΈ NAME πΈ
lis_array_cgs β bestie, this is the one that does the QR factorization using the classical Gram-Schmidt process. that's the whole vibe. π
π¦ SYNOPSIS π¦
#include "lis.h"
LIS_INT lis_array_cgs(LIS_INT n, LIS_SCALAR a[], LIS_SCALAR q[],
LIS_SCALAR r[]);
like, that's the signature, no notes, copy it exactly or it will not compile and you will cry π
π DESCRIPTION π
so what it literally does: it calculates the QR factorization where QR=A, and it does it with the classical Gram-Schmidt process. that's it. that's the function. iconic behavior honestly π
π INPUT π
nβ the size of the matrices, lowkey important, do not skip it πaβ the array that stores matrixA, and it's sizen * nfr fr
π OUTPUT π
qβ the array that stores the orthogonal matrixQ, sizen * nβ¨rβ the array that stores the upper-triangular matrixR, sizen * nπ
π EXIT STATUS π
these are the exit values you might get back, bestie, so pay attention:
0β the process is normally terminated, we ate, everything's good π«Ά- unspecified β an error occurred. not me finding out the hard way π
π§ SEE ALSO π§
bestie if you're gonna use this, remember: it's Gram-Schmidt, classical flavor, and the sizes are n * n across the board. no cap. β
okay that's the whole page! πΈ this lil masterpiece lives in the lis_array_cgs(3) man page, Man Page, dated 3 Dec 2014, and it's giving exactly what it needs to give. mwah, love u, go factor some matrices π
π
π¦ 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