lis_array_matvec(3)

๐Ÿ“ฆ version 2.1.11, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

๐Ÿ’– lis_array_matvec(3) ๐Ÿ’–

okay bestie, welcome to the Lis Library Functions corner of the manual, where we're about to make a matrix and a vector kiss and produce a brand new vector. it's giving math but make it cute โœจ


โœจ NAME โœจ

lis_array_matvec โ€” calculate the matrix vector product ๐Ÿงฎ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

#include "lis.h"

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

like yes she takes five arguments and she eats every single time ๐Ÿซถ


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

she calculates the matrix-vector product Ax. that's it, that's the whole job, and she does it flawlessly no cap ๐Ÿ’ฏ


๐ŸŽ€ INPUT ๐ŸŽ€

  • n โ€” the size of the matrix and the vectors. everyone's matching, it's a vibe check ๐ŸŒˆ
  • a โ€” the array that stores matrix A, of size n * n. yes queen, she's holding the whole matrix ๐Ÿ“
  • x โ€” the array that stores vector x, of size n ๐Ÿ‘‘
  • y โ€” the array that stores vector y, of size n ๐Ÿ’œ
  • op โ€” the operation selector, and this one decides what actually goes down:
    • LIS_INS_VALUE โ€” y = Ax. she overwrites y with the product, main character energy, out with the old ๐Ÿ“โœจ
    • LIS_SUB_VALUE โ€” y = y - Ax. she subtracts the product from whatever y already had going on, lowkey iconic ๐Ÿ˜Œ

โญ OUTPUT โญ

  • y โ€” y. that's the answer bestie, that's the whole point ๐ŸŽ‰

๐Ÿ’€ EXIT STATUS ๐Ÿ’€

here's what she returns when she's done:

  • 0 โ€” the process is normally terminated. slay, no notes ๐Ÿฅณ
  • unspecified โ€” an error occurred. not me manifesting an errorโ€ฆ if this happens, something went wrong and the manual is simply not going to elaborate ๐Ÿ™ˆ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


and that's the page!! this was the Man Page for lis_array_matvec(3), dated 3 Dec 2014, from the Lis Library Functions collection ๐Ÿ’– go forth and multiply (matrices) bestie, ily, bye ๐Ÿซถโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from