lis_array_matvect(3)

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

✨ lis_array_matvect β€” it's giving matrix-vector product ✨

okay bestie, so this is a Lis Library Function and it lives in the lis_array_matvect(3) page, section 3, and honestly? it's a lil workhorse. πŸ’…


🌸 SYNOPSIS 🌸

#include "lis.h"

LIS_INT lis_array_matvect(LIS_INT n, LIS_SCALAR a[], LIS_SCALAR x[],
LIS_SCALAR y[], LIS_INT op);

like, that's the whole signature, no notes. 🫢


πŸ’– DESCRIPTION πŸ’–

Calculate the matrix-vector product A^Tx.

no cap, that's literally the whole job. she takes your matrix, she takes your vector, she does the lil transpose-multiply thing. main character energy tbh. πŸ‘‘


πŸŽ€ INPUT πŸŽ€

  • n β€” the size of the matrix and vectors. she needs to know how big everything is, okay? she's not a mind reader. πŸ™ˆ
  • a β€” the array that stores matrix A of size n * n. yes that's n squared, she's thicc like that. πŸ’€
  • x β€” the array that stores vector x of size n.
  • y β€” the array that stores vector y of size n.
  • op β€” the vibe check, aka which mode we're in:
    • LIS_INS_VALUE β€” y = A^Tx (fresh y, insert the value, slay ✨)
    • LIS_SUB_VALUE β€” y = y - A^Tx (subtract the product from the y you already had, subtraction girlies rise 🌈)

πŸ¦‹ OUTPUT πŸ¦‹

  • y β€” y. yeah. it's y. she returns y and y is where the answer lives. periodt. πŸ’œ

⭐ EXIT STATUS ⭐

the following exit values are returned:

  • 0 β€” the process is normally terminated. she ate and left no crumbs. πŸ‘‘
  • unspecified β€” an error occurred. not iconic. something went wrong and we do not know what. 😭

🌈 SEE ALSO 🌈


okay that's the whole page bestie, you're so welcome πŸ’–

this was the Lis Library Functions manual page lis_array_matvect(3), dated 3 Dec 2014 β€” shoutout to the source and version, they came through fr fr. go forth and multiply (matrices). 🧚🌸
πŸ“¦ where this page comes from