lis_array_matvect(3f)
π lis_array_matvect β calculate the matrix vector product π
okay bestie, welcome to lis_array_matvect(3f) β she's a Fortran subroutine from the Lis Library Functions and she does exactly one thing and does it flawlessly. no cap. π«Ά
β¨ SYNOPSIS β¨
subroutine lis_array_matvect(LIS_INTEGER n, LIS_SCALAR a(), LIS_SCALAR
x(), LIS_SCALAR y(), LIS_INTEGER op, LIS_INTEGER ierr);
that's her. that's the whole signature. iconic behavior fr fr π
πΈ DESCRIPTION πΈ
so literally what she does is calculate the matrix-vector product A^Tx. that's it. that's the assignment. and she ate. π₯
π INPUT π
nβ the size of the matrix and the vectors. like, how big we're going. πaβ the array that stores matrix A, and it's sizen * n. big girl matrix energy. πxβ the array that stores vector x, sizen. π¦yβ the array that stores vector y, sizen. πΈopβ the vibe selector, choose your fighter:LIS_INS_VALUEβ gives youy = A^Tx. fresh, clean, brand new y. β¨LIS_SUB_VALUEβ gives youy = y - A^Tx. she's subtracting, she's doing math, she's in her era. π
π OUTPUT π
yβ y. that's the output. that's it. y is y and y is served. π
π SEE ALSO π
heads up bestie:oponly knows those two moves, so pick one ofLIS_INS_VALUEorLIS_SUB_VALUEand don't be out here inventing new ones, okay? π«Ά
and that's the whole page, no notes. this gem is from the Lis Library Functions, dated 3 Dec 2014, and the man page signs off as lis_array_matvect(3f). slay, stay hydrated, go multiply something. πβ¨π
π¦ 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