lis_array_mgs(3f)

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

πŸ’– 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 in LIS_INTEGER form.
  • a β€” the array that stores matrix A, sized n * n. this is your input, your main character, the one you're decomposing.

πŸŽ€ OUTPUT πŸŽ€

  • q β€” the array that stores matrix Q, sized n * n. she writes it, you don't have to.
  • r β€” the array that stores matrix R, sized n * n. same deal. Q and R, both freshly served. ✨
heads up: q and r are 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 πŸ‘‘


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