lis_array_matmat(3f)

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

✨ lis_array_matmat ✨

okay so bestie, welcome to lis_array_matmat(3f) β€” it lives in the Lis Library Functions corner of the universe, and it's literally the girl who does matrix-matrix multiplication for you. πŸ’…


🌸 NAME 🌸

lis_array_matmat β€” calculate the matrix-matrix product. that's it, that's the whole job, and she does it flawlessly. no cap. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

subroutine lis_array_matmat(LIS_INTEGER n, LIS_SCALAR a(), LIS_SCALAR
b(), LIS_SCALAR c(), LIS_INTEGER op, LIS_INTEGER ierr);

six args, one subroutine, zero drama. πŸŽ€


✨ DESCRIPTION ✨

She calculates the matrix-matrix product AB. that's the vibe. A times B, and depending on what you tell her with op, she either drops it straight into C or subtracts it from whatever C was already holding. main character energy fr fr. πŸ”₯


πŸ’œ INPUT πŸ’œ

  • n β€” the size of the vectors. she needs to know how big we're going, bestie. πŸ“
  • a β€” the array that stores matrix A of size n * n. that's your first matrix, your girl A. πŸ’–
  • b β€” the array that stores matrix B of size n * n. and that's B, the second one, also n * n because they have to match, obviously. πŸ¦‹
  • c β€” the array that stores matrix C of size n * n. the destination. the moment. the place where the math lands. ✨
  • op β€” the vibe check that tells her what to actually do with the product:
    • LIS_INS_VALUE β€” C = AB. she straight up inserts the product into C. clean slate behaviour, iconic. πŸ‘‘
    • LIS_SUB_VALUE β€” C = C - AB. she subtracts the product from C, so C keeps its old self and gets the product taken away from it. no thoughts, just subtraction. 😭

🌈 OUTPUT 🌈

  • c β€” C. yeah girl, the output is C, the same C you handed her. she works in place and hands it right back. 🫢

⭐ SEE ALSO ⭐

  • lis(3) β€” go meet the whole family, she's part of something bigger 🧚
  • http://www.ssisc.org/lis/ β€” the official home base, go say hi πŸ’œ

and that's the page!! this one's from the Lis Library Functions manual, dated 3 Dec 2014, and the footer says lis_array_matmat(3f) β€” so yeah, that's her name and that's her birthday. πŸŽ‚ periodt. πŸ’…πŸŒΈβœ¨

πŸ“¦ where this page comes from