lis_array_xpay(3f)
π lis_array_xpay β the "just add a lil bit of x to y" function π
okay bestie, welcome to the Lis Library Functions corner of the manual, this is lis_array_xpay(3f) and she is so much simpler than her name makes her sound, i promise π«Ά
β¨ NAME β¨
lis_array_xpay β calculate the sum of the vectors π«
πΈ SYNOPSIS πΈ
subroutine lis_array_xpay(LIS_INTEGER n, LIS_SCALAR x(), LIS_SCALAR
alpha, LIS_SCALAR y(), LIS_INTEGER ierr);
π¦ DESCRIPTION π¦
bestie. listen. she calculates the sum of the vectors:
y = x + alpha * y
that's it. that's the whole vibe. you hand her some vectors and a scalar, she does the lil math, and she puts the answer right back in y. main character energy tbh π
π INPUT π
nβ the size of the vectors. like, how many numbers are we talking here, girlie? that many. πalphaβ the scalar value. this is the lil multiplier that makes it spicy πΆοΈx,yβ the arrays that store the vectors. these are the actual data, no cap π
β OUTPUT β
yβ getsx + alpha * ywritten all over it. yes literally, vectoryis overwritten, so if you were attached to the oldyβ¦ she's gone bestie ππ
not me warning you twice: y is overwritten. the original contents do NOT survive this. periodt.
π SEE ALSO π
that's the whole page, no filler, ate and left no crumbs π
and for the cute sign-off: this lil masterpiece is from the Lis Library Functions manual, dated 3 Dec 2014, filed under Man Page for lis_array_xpay(3f) πβ¨π§
π¦ 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