lis_array_matvec_ns(3)

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

πŸ’– lis_array_matvec_ns(3) β€” from the Lis Library Functions πŸ’–

okay bestie, sit down, hydrate, and let me tell you about lis_array_matvec_ns β€” the matrix-vector product girlie who does not require a square matrix, and honestly? iconic behavior. πŸ¦‹


✨ SYNOPSIS ✨

#include "lis.h"

LIS_INT lis_array_matvec_ns(LIS_INT m, LIS_INT n, LIS_SCALAR a[],
LIS_INT lda, LIS_SCALAR x[], LIS_SCALAR y[]);

like yes, that's the whole signature, no cap. 🫢


🌸 DESCRIPTION 🌸

So basically this function calculates the matrix-vector product Ax, where the matrix A is not square. That's literally the whole point β€” it's giving "rectangle rights" and we love that for her. πŸ’…


πŸŽ€ INPUT πŸŽ€

  • m, n β€” the size of the matrix and the vectors, periodt.
  • a β€” the array that stores matrix A, of size m * n. yes, m times n, keep up bestie πŸ“
  • x β€” the array that stores vector x, of size n.
  • y β€” the array that stores vector y, of size m.
  • op β€” the vibe selector, and there are exactly two moods:
    • LIS_INS_VALUE β€” means y = Ax ✨
    • LIS_SUB_VALUE β€” means y = y - Ax πŸ’€

πŸ’œ OUTPUT πŸ’œ

  • y β€” it's y. that's it. that's the output. she returns y. πŸŽ€

πŸ”₯ EXIT STATUS πŸ”₯

these are the exit values she hands back to you:

  • 0 β€” the process is normally terminated. slay, everything worked, we're so back. πŸ‘‘
  • unspecified β€” an error occurred. not the moment, not the vibe, go check your inputs bestie 😭

🌈 SEE ALSO 🌈


lowkey a reminder from your girl: A is not square here. that is not a bug, that is the entire personality of this function. do not come for her. πŸ™ˆ

Man Page β€” 3 Dec 2014 πŸ¦‹ and that's the tea, bestie β€” go forth and multiply (matrices, specifically). mwah πŸ’–βœ¨

πŸ“¦ where this page comes from