lis_matrix_axpy(3f)

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

πŸ’– lis_matrix_axpy β€” bestie we're doing MATRIX MATH πŸ’–

okay so this is one of the Lis Library Functions (yes, the lis(3) girlies, we know her, we love her) and she's here to do exactly one thing and do it slayfully: add matrices together. group-chat recap incoming ✨


✨ SYNOPSIS ✨

subroutine lis_matrix_axpy(LIS_SCALAR alpha, LIS_MATRIX A, LIS_MATRIX B,
LIS_INTEGER ierr);

like. look at her. four little arguments. iconic behavior fr fr πŸŽ€


🌸 DESCRIPTION 🌸

so basically this routine calculates the sum of the matrices, specifically:

B = alpha * A + B

that's it. that's the whole vibe. you hand her a scalar alpha and two matrices A and B, and she goes "okay bet" and gives you back alpha * A + B. no cap. πŸ’…


πŸ¦‹ INPUT πŸ¦‹

  • alpha β€” the scalar value. your little multiplier bestie, the seasoning, the ✨je ne sais quoi✨
  • A, B β€” the matrices. the main characters. we love them, we respect them 🫢

πŸ’œ OUTPUT πŸ’œ

  • B β€” becomes alpha * A + B. and yes bestie, she's overwritten. the old B? gone. deceased. she doesn't exist anymore, B has been replaced with the new hotness. don't come crying to me about your original B, i warned you 😭

⭐ NOTE ⭐

matrices A and B must be in the DNS format. like, this is not a suggestion, this is the vibe check and if you fail it you're not getting in. DNS format only. periodt. πŸ”₯

🌈 SEE ALSO 🌈

  • lis(3) β€” go read her too, she's the mother of the whole situation πŸ‘‘

and if you wanna go deeper (iykyk):

http://www.ssisc.org/lis/

and that's the whole page bestie!! stay slay, keep your matrices in DNS format, and remember: B gets overwritten, so hydrate and back up your data πŸ’–βœ¨

this lil cutie came from the Lis Library Functions, dated 30 Dec 2014, and lives in the manual as lis_matrix_axpy(3f). mwah, go forth and multiply πŸ’…πŸŒΈπŸŽ€

πŸ“¦ where this page comes from