lis_array_matvect(3)
β¨ 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
- fedora 43: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 43: lis-doc 2.1.11-1.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: lis-doc 2.0.21-13.fc41 Β· BSD
- fedora 44: lis-doc 2.1.11-1.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: lis 2.1.10
- nixpkgs unstable: lis 2.1.16
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms