lis_array_axpyz(3f)
β¨ lis_array_axpyz β the "add two vectors but make one of them β¨spicyβ¨" function π
okay bestie, so you know how lis(3f) has a whole lil family of array math routines? this is one of them, and she is lowkey iconic. the manual page calls herself lis_array_axpyz(3f), and she lives in the Lis Library Functions section. very demure, very mindful. let's get into it π«Ά
πΈ SYNOPSIS πΈ
subroutine lis_array_axpyz(LIS_INTEGER n, LIS_SCALAR alpha, LIS_SCALAR
x(), LIS_SCALAR y(), LIS_SCALAR z(), LIS_INTEGER ierr);
that's the whole signature, no cap. six arguments, one ierr for the drama (we'll get to her) π
π DESCRIPTION π
she calculates the sum of the vectors. that's it, that's the job. the formula is giving:
z = alpha * x + y
so basically: take vector x, glow it up by multiplying by the scalar alpha, then toss vector y on top. the result lands in z. it's the classic axpy move but with a z on the end to catch the output β hence the extra letter, iykyk π
π INPUT π
nβ the size of the vectors. like, how many entries are we even working with, bestie π¦alphaβ the scalar value. she's the multiplier, the main character energy that scalesxup (or down, or to zero, we don't judge) πx,yβ the arrays that store the vectors. these two are the besties going in π«Ά
β OUTPUT β
zβ and out comesalpha * x + y. periodt. that's the result array, freshly served πΈ
also there's that ierr argument chillin' in the signature β she's the integer error flag, so keep an eye on her after the call, fr fr π
π SEE ALSO π
go poke around the site, the whole library is there and she's thriving β¨
and that's the page, bestie!! this lil writeup came from the Lis Library Functions source, dated 3 Dec 2014, and the original footer tagged it as the man page for lis_array_axpyz(3f). go forth and axpyz responsibly ππ¦π
π¦ 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