lis_array_matmat(3)

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

πŸ’– lis_array_matmat β€” the matrix-matrix product girlie πŸ’–

okay so bestie, this is a page from the Lis Library Functions manual (section 3, the library-call girlies πŸŽ€), and today's main character is lis_array_matmat. she does exactly one thing and she does it flawlessly: she multiplies two matrices. periodt. πŸ’…


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_array_matmat(LIS_INT n, LIS_SCALAR a[], LIS_SCALAR b[],
LIS_SCALAR c[], LIS_INT op);

like… look at her. 🫢


🌸 DESCRIPTION 🌸

She calculates the matrix-matrix product AB. that's it, that's the whole vibe. no cap. ✨


πŸ‘‘ INPUT πŸ‘‘

  • n β€” the size of the matrices, bestie. just a number. πŸ¦‹
  • a β€” the array that stores matrix A, and it's size n * n. iconic.
  • b β€” the array that stores matrix B, also size n * n. slay.
  • c β€” the array that stores matrix C, size n * n as well. the trinity fr fr. πŸ’œ
  • op β€” the mood of the operation, and there are exactly two moods:
    • LIS_INS_VALUE β€” gives you C = AB. fresh start energy, she overwrites. 🌈
    • LIS_SUB_VALUE β€” gives you C = C - AB. she's subtracting the product off of what was already in there, like a glow-down but mathematically. 😭

πŸ’– OUTPUT πŸ’–

  • C β€” C. yeah. that's the output. she said what she said. πŸ’€

⭐ EXIT STATUS ⭐

the following exit values are returned, bestie:

  • 0 β€” the process is normally terminated. we love a clean exit. πŸŽ€
  • unspecified β€” an error occurred. not the vibe. πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page, you're basically a linear algebra girlie now πŸ’…βœ¨

this cutie is brought to you by the Lis Library Functions manual, man page dated 3 Dec 2014, filed under lis_array_matmat(3) β€” mwah, go multiply something 🫢🌸

πŸ“¦ where this page comes from